MCPcopy Index your code
hub / github.com/devspace-sh/devspace / IsUnsafeUpperName

Function IsUnsafeUpperName

pkg/util/encoding/encoding.go:49–51  ·  view source on GitHub ↗
(unsafeName string)

Source from the content-addressed store, hash-verified

47var UnsafeUpperNameRegEx = regexp.MustCompile(`^(([A-Za-z0-9][A-Za-z0-9\-_]*[A-Za-z0-9])|([A-Za-z0-9]))$`)
48
49func IsUnsafeUpperName(unsafeName string) bool {
50 return !UnsafeUpperNameRegEx.MatchString(unsafeName)
51}
52
53func IsUnsafeName(unsafeName string) bool {
54 return !UnsafeNameRegEx.MatchString(unsafeName)

Callers 2

validateVarsFunction · 0.92
TestIsUnsafeUpperNameFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsUnsafeUpperNameFunction · 0.68