aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/twtstr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index 0bce4591..53d68798 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -528,7 +528,7 @@ func processIdna(str: string, checkhyphens, checkbidi, checkjoiners, transitiona
var s = label
if label.startsWith("xn--"):
try:
- s = punycode.decode(label)
+ s = punycode.decode(label.substr("xn--".len))
except PunyError:
return none(string) #error
#TODO check normalization