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 16a1bd9 commit 045d083Copy full SHA for 045d083
label_sync/main.go
@@ -975,7 +975,7 @@ type labelCSSData struct {
975
func cssEscape(s string) (escaped string) {
976
var IsAlpha = regexp.MustCompile(`^[a-zA-Z]+$`).MatchString
977
for i, c := range s {
978
- if (i == 0 && unicode.IsDigit(c)) || !(unicode.IsDigit(c) || IsAlpha(string(c))) {
+ if (i == 0 && unicode.IsDigit(c)) || (!unicode.IsDigit(c) && !IsAlpha(string(c))) {
979
escaped += fmt.Sprintf("x%0.6x", c)
980
continue
981
}
0 commit comments