We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0088bd4 commit 1e708d2Copy full SHA for 1e708d2
unit/escape.go
@@ -57,7 +57,7 @@ func escape(unescaped string, isPath bool) string {
57
if c == '/' {
58
e = append(e, '-')
59
} else if start && c == '.' || strings.IndexByte(allowed, c) == -1 {
60
- e = append(e, []byte(fmt.Sprintf(`\x%x`, c))...)
+ e = fmt.Appendf(e, `\x%x`, c)
61
} else {
62
e = append(e, c)
63
}
0 commit comments