diff options
author | bptato <nincsnevem662@gmail.com> | 2022-06-27 19:00:19 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-06-27 23:53:32 +0200 |
commit | 84882cb8a6f9bca58d178a1f2b8fb5cafa8b3a56 (patch) | |
tree | 0ad531e10dbee632a3cacc309cc7fae7df7442a6 /src/types | |
parent | 52c185c83d8e372af7f68fcc4df1ac2f20985e0f (diff) | |
download | chawan-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.nim | 2 |
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 |