Skip to content

Commit 503e84e

Browse files
committed
Update confusables.py
add some improvements
1 parent 2bea244 commit 503e84e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

confusables.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@
768768
u'\uABB6': 'k',
769769
u'\u049B': 'k',
770770
u'\u049F': 'k',
771+
u'\u1E33': 'k',
771772
u'\U00010320': 'l',
772773
u'\U0001E8C7': 'l',
773774
u'\U0001D7CF': 'l',
@@ -1823,7 +1824,7 @@
18231824
}
18241825

18251826
def unconfuse(domain):
1826-
if domain.startswith('xn--'):
1827+
if domain.startswith('xn--') or domain.find('xn--'):
18271828
domain = domain.encode('idna').decode('idna')
18281829
unconfused = ''
18291830
for i in range(len(domain)):

0 commit comments

Comments
 (0)