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

Function IsUnsafeName

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

Source from the content-addressed store, hash-verified

51}
52
53func IsUnsafeName(unsafeName string) bool {
54 return !UnsafeNameRegEx.MatchString(unsafeName)
55}
56
57func IsUnsafeCommandName(unsafeCommandName string) bool {
58 return !UnsafeCommandNameRegEx.MatchString(unsafeCommandName)

Callers 9

ValidateFunction · 0.92
validatePipelinesFunction · 0.92
validateDependenciesFunction · 0.92
validateDeploymentsFunction · 0.92
validatePullSecretsFunction · 0.92
validateImagesFunction · 0.92
validateDevFunction · 0.92
LoadWithParserMethod · 0.92
TestIsUnsafeUpperNameFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsUnsafeUpperNameFunction · 0.68