Merge pull request #41 from paulscherrerinstitute/validString

Correct VNFS name check regex
This commit is contained in:
Brian Clemens
2021-03-25 19:52:50 +09:00
committed by GitHub

View File

@@ -12,7 +12,7 @@ import (
)
func ValidName(name string) bool {
if util.ValidString(name, "^[a-zA-Z0-9.:-_]+$") == false {
if util.ValidString(name, "^[\\w\\-\\.\\:]+$") == false {
wwlog.Printf(wwlog.WARN, "VNFS name has illegal characters: %s\n", name)
return false
}