Change-Id: I629d89d5065271f3b92dde8b12f0e743c9bde8f0
Reviewed-on: https://go-review.googlesource.com/103595
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
return (c <= 0x20) && 0 != (htmlSpaceAndASCIIAlnumBytes[c>>3]&(1<<uint(c&0x7)))
}
-func isHTMLSpaceOrAsciiAlnum(c byte) bool {
+func isHTMLSpaceOrASCIIAlnum(c byte) bool {
return (c < 0x80) && 0 != (htmlSpaceAndASCIIAlnumBytes[c>>3]&(1<<uint(c&0x7)))
}
// we don't need to URL normalize it.
metadataOk := true
for i := end; i < right; i++ {
- if !isHTMLSpaceOrAsciiAlnum(s[i]) {
+ if !isHTMLSpaceOrASCIIAlnum(s[i]) {
metadataOk = false
break
}