Prevent alphabetical characters only for unknown version aliases. Closes #907.

This commit is contained in:
Corey Butler
2023-01-26 20:55:03 -06:00
parent fdbf31dfdd
commit 7852e0c8ea

View File

@@ -502,7 +502,7 @@ func versionNumberFrom(version string) string {
if reg.Match([]byte(version[:1])) {
if version[0:1] != "v" {
fmt.Printf("\"%v\" is not a valid version or recognized alias.\n", version)
fmt.Printf("\"%v\" is not a valid version or known alias.\n", version)
os.Exit(0)
}
}