Make naming consistent with regexp.MatchString

This commit is contained in:
Sujeev-Uthayakumar
2026-01-30 18:06:06 -05:00
parent 31bcefea11
commit 0f3f0c3ccf
4 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ import (
)
func ValidName(name string) bool {
if !util.ValidString(name, "^[\\w\\-\\.\\:]+$") {
if !util.ValidString("^[\\w\\-\\.\\:]+$", name) {
wwlog.Warn("Image name has illegal characters: %s", name)
return false
}