diff options
author | bptato <nincsnevem662@gmail.com> | 2023-01-05 17:28:37 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-01-05 17:28:37 +0100 |
commit | 11f7aa676ff294508b4273c84db9fbba5cc5fe73 (patch) | |
tree | e5700ff865df50ac8c892045da4ad20ac3278596 /src/data | |
parent | c01c4f7c246f53ff954f4a8cbad65f0c10e1c0ed (diff) | |
download | chawan-11f7aa676ff294508b4273c84db9fbba5cc5fe73.tar.gz |
data/idna, utils/twtstr: clean up, fix bugs
Looks like lazily loading the idna table doesn't work, so now it's statically loaded. Also, bugfixes in idna handling.
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/idna.nim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/data/idna.nim b/src/data/idna.nim index b636aa8c..451792a2 100644 --- a/src/data/idna.nim +++ b/src/data/idna.nim @@ -135,14 +135,7 @@ func loadStuff(s: string): (FullMap[cstring], # Map of "ignored": add(firstcol, add_ignore) -when defined(release) or defined(small): - const (MappedMap, - DisallowedRanges, - Disallowed, - Ignored, - Deviation) = loadStuff(IdnaMappingTable) -else: - let (MappedMap, +const (MappedMap, DisallowedRanges, Disallowed, Ignored, |