Support lowercase unicode escape sequences (#140)

This commit is contained in:
Cameron Moore
2017-03-13 22:04:08 -05:00
committed by Thomas Pelletier
parent 13d49d4606
commit 3b00596b2e
2 changed files with 26 additions and 1 deletions
+2 -1
View File
@@ -135,5 +135,6 @@ func isDigit(r rune) bool {
func isHexDigit(r rune) bool {
return isDigit(r) ||
r == 'A' || r == 'B' || r == 'C' || r == 'D' || r == 'E' || r == 'F'
(r >= 'a' && r <= 'f') ||
(r >= 'A' && r <= 'F')
}