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

Function IsAlphaNumericDashUnderscore

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

Source from the content-addressed store, hash-verified

58var _alphaNumericDashUnderscoreRegex = regexp.MustCompile(`^[a-zA-Z0-9_\-]+$`)
59
60func IsAlphaNumericDashUnderscore(s string) bool {
61 return _alphaNumericDashUnderscoreRegex.MatchString(s)
62}
63
64var _alphaNumericDotUnderscoreRegex = regexp.MustCompile(`^[a-zA-Z0-9_\.]+$`)
65

Callers 1

ValidateStringValFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected