]> Sergey Matveev's repositories - path-extractor.git/blobdiff - validators.go
Correct version number
[path-extractor.git] / validators.go
index 38704c79ee284d5e5239afde882fab9d0823778b..60a817c9beb239988faf277b377626d0ba467900 100644 (file)
@@ -52,7 +52,7 @@ func replaceGitPath(input string) string {
 }
 
 func isVersion(input string) bool {
-       r := regexp.MustCompile("^v?[0-9x]\\.[0-9x]{1,2}(\\.[0-9x]{1,3})?$")
+       r := regexp.MustCompile("^v?[0-9x]{1,3}\\.[0-9x]{1,3}(\\.[0-9x]{1,3})?$")
        return r.Match([]byte(input))
 }