MCPcopy
hub / github.com/cortexlabs/cortex / IsAlphaNumericDash

Function IsAlphaNumericDash

pkg/lib/regex/regex.go:72–74  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

70var _alphaNumericDashRegex = regexp.MustCompile(`^[a-zA-Z0-9\-]+$`)
71
72func IsAlphaNumericDash(s string) bool {
73 return _alphaNumericDashRegex.MatchString(s)
74}
75
76// used the evaluated form of
77// https://github.com/docker/distribution/blob/3150937b9f2b1b5b096b2634d0e7c44d4a0f89fb/reference/regexp.go#L68-L70

Callers 1

ValidateStringValFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected