We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5226968 commit a43ae55Copy full SHA for a43ae55
1 file changed
pkg/formatting/k8labels.go
@@ -3,7 +3,6 @@ package formatting
3
import (
4
"slices"
5
"strings"
6
- "unicode"
7
8
"k8s.io/apimachinery/pkg/util/validation"
9
)
@@ -84,8 +83,7 @@ func pairs(m map[rune]string) []string {
84
83
85
// isSafe a helper to identify if a rune is safe to process or should be dropped.
86
func isSafe(r rune) bool {
87
- return !(unicode.IsSpace(r) && r != ' ') &&
88
- (isAllowedSpecialCharLabelValue(r) || isAlphanumeric(r) || isManagedSpecialChar(r))
+ return isAllowedSpecialCharLabelValue(r) || isAlphanumeric(r) || isManagedSpecialChar(r)
89
}
90
91
// isAlphanumeric returns true if the rune is an alphanumeric value.
0 commit comments