about summary refs log tree commit diff stats
path: root/src/types
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-06-27 19:00:19 +0200
committerbptato <nincsnevem662@gmail.com>2022-06-27 23:53:32 +0200
commit84882cb8a6f9bca58d178a1f2b8fb5cafa8b3a56 (patch)
tree0ad531e10dbee632a3cacc309cc7fae7df7442a6 /src/types
parent52c185c83d8e372af7f68fcc4df1ac2f20985e0f (diff)
downloadchawan-84882cb8a6f9bca58d178a1f2b8fb5cafa8b3a56.tar.gz
Implement standard-compliant HTML tokenizer
Seems performant enough, though I'm not sure whether it is actually
producing correct output.
Still missing: tests and the actual parsing.
Diffstat (limited to 'src/types')
-rw-r--r--src/types/url.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/url.nim b/src/types/url.nim
index 447dafc8..4099fed9 100644
--- a/src/types/url.nim
+++ b/src/types/url.nim
@@ -88,7 +88,7 @@ func parseIpv6(input: string): Option[array[8, uint16]] =
       continue
     var value: uint16 = 0
     var length = 0
-    while length < 4 and has and c in HexDigits:
+    while length < 4 and has and c in AsciiHexDigit:
       value = value * 0x10 + uint16(c.hexValue)
       inc pointer
       inc length