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

Function IsAlphaNumericDashDotUnderscore

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

Source from the content-addressed store, hash-verified

52var _alphaNumericDashDotUnderscoreRegex = regexp.MustCompile(`^[a-zA-Z0-9_\-\.]+$`)
53
54func IsAlphaNumericDashDotUnderscore(s string) bool {
55 return _alphaNumericDashDotUnderscoreRegex.MatchString(s)
56}
57
58var _alphaNumericDashUnderscoreRegex = regexp.MustCompile(`^[a-zA-Z0-9_\-]+$`)
59

Callers 1

ValidateStringValFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected