MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / checkNamePattern

Function checkNamePattern

agent/init/validator/validator.go:26–29  ·  view source on GitHub ↗
(fl validator.FieldLevel)

Source from the content-addressed store, hash-verified

24}
25
26func checkNamePattern(fl validator.FieldLevel) bool {
27 value := fl.Field().String()
28 return re.GetRegex(re.ValidatorNamePattern).MatchString(value)
29}
30
31func checkIpPattern(fl validator.FieldLevel) bool {
32 value := fl.Field().String()

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected