From 503e84e350098bb47a868cfe8e8dd15338de32f4 Mon Sep 17 00:00:00 2001 From: frpet Date: Sun, 27 Oct 2019 23:29:08 +0100 Subject: [PATCH] Update confusables.py add some improvements --- confusables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confusables.py b/confusables.py index 3d427da..cfde373 100644 --- a/confusables.py +++ b/confusables.py @@ -768,6 +768,7 @@ u'\uABB6': 'k', u'\u049B': 'k', u'\u049F': 'k', + u'\u1E33': 'k', u'\U00010320': 'l', u'\U0001E8C7': 'l', u'\U0001D7CF': 'l', @@ -1823,7 +1824,7 @@ } def unconfuse(domain): - if domain.startswith('xn--'): + if domain.startswith('xn--') or domain.find('xn--'): domain = domain.encode('idna').decode('idna') unconfused = '' for i in range(len(domain)):