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)):