Skip to content

Commit

Permalink
Merge pull request x0rz#2 from pettai/patch
Browse files Browse the repository at this point in the history
Update confusables.py
  • Loading branch information
xenoid authored Aug 25, 2020
2 parents 38b71a1 + 503e84e commit a1c442e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion confusables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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)):
Expand Down

0 comments on commit a1c442e

Please sign in to comment.