mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2026-01-14 07:03:17 +08:00
Prevent alphabetical characters only for unknown version aliases. Closes #907.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user