MCPcopy Create free account
hub / github.com/github/gh-aw / SanitizeName

Function SanitizeName

pkg/workflow/strings.go:97–99  ·  view source on GitHub ↗

SanitizeName sanitizes a string for use as an identifier, file name, or similar context.

(name string, opts *SanitizeOptions)

Source from the content-addressed store, hash-verified

95
96// SanitizeName sanitizes a string for use as an identifier, file name, or similar context.
97func SanitizeName(name string, opts *SanitizeOptions) string {
98 return stringutil.SanitizeName(name, opts)
99}
100
101// SanitizeWorkflowName sanitizes a workflow name for use in artifact names and file paths.
102// It converts the name to lowercase and replaces or removes characters that are invalid

Callers 4

SanitizeWorkflowNameFunction · 0.70
TestSanitizeNameFunction · 0.70

Calls 1

SanitizeNameFunction · 0.92

Tested by 2

TestSanitizeNameFunction · 0.56