Skip to content

Commit

Permalink
chore: Adapt to Nu v0.95
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Jun 30, 2024
1 parent 10183bd commit 08a6fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nu/common.nu
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export def compare-ver [
# Ignore '-beta' or '-rc' suffix
let v1 = ($source | split row '.' | each {|it| ($it | parse -r '(?P<v>\d+)' | get v | get 0 )})
let v2 = ($dest | split row '.' | each {|it| ($it | parse -r '(?P<v>\d+)' | get v | get 0 )})
for $v in $v1 -n {
for $v in ($v1 | enumerate) {
let c1 = ($v1 | get -i $v.index | default 0 | into int)
let c2 = ($v2 | get -i $v.index | default 0 | into int)
if $c1 > $c2 {
Expand Down

0 comments on commit 08a6fd4

Please sign in to comment.