提交 e6fdca74 编写于 作者: R rahulroy9202

now checks if input version is greater than latest

上级 b4b809c9
...@@ -125,7 +125,7 @@ func checkVersionExceedsLatest(version string) bool{ ...@@ -125,7 +125,7 @@ func checkVersionExceedsLatest(version string) bool{
reg := regexp.MustCompile("node-v|-x.+") reg := regexp.MustCompile("node-v|-x.+")
latest := reg.ReplaceAllString(re.FindString(content),"") latest := reg.ReplaceAllString(re.FindString(content),"")
if version < latest { if version <= latest {
return false return false
} else { } else {
return true return true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册