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

Function checkIpPattern

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

Source from the content-addressed store, hash-verified

29}
30
31func checkIpPattern(fl validator.FieldLevel) bool {
32 value := fl.Field().String()
33 return re.GetRegex(re.ValidatorIPPattern).MatchString(value)
34}
35
36func checkPasswordPattern(fl validator.FieldLevel) bool {
37 value := fl.Field().String()

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected