mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2026-01-20 07:00:43 +08:00
now checks if input version is greater than latest
This commit is contained in:
@@ -125,7 +125,7 @@ func checkVersionExceedsLatest(version string) bool{
|
||||
reg := regexp.MustCompile("node-v|-x.+")
|
||||
latest := reg.ReplaceAllString(re.FindString(content),"")
|
||||
|
||||
if version < latest {
|
||||
if version <= latest {
|
||||
return false
|
||||
} else {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user