diff options
Diffstat (limited to 'ref/name/sanitize.go')
| -rw-r--r-- | ref/name/sanitize.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ref/name/sanitize.go b/ref/name/sanitize.go deleted file mode 100644 index f543de7c..00000000 --- a/ref/name/sanitize.go +++ /dev/null @@ -1,19 +0,0 @@ -package refname - -import ( - "fmt" - "strings" -) - -// SanitizeComponent mutates component until it satisfies -// sanitize_refname_component. -func SanitizeComponent(component string) string { - var builder strings.Builder - - err := checkOrSanitizeRefname(component, refnameAllowOneLevel, &builder) - if err != nil { - panic(fmt.Sprintf("ref: sanitize component %q: %v", component, err)) - } - - return builder.String() -} |
