From 11f7aa676ff294508b4273c84db9fbba5cc5fe73 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 5 Jan 2023 17:28:37 +0100 Subject: 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. --- src/data/idna.nim | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/data') 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, -- cgit 1.4.1-2-gfad0