We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b52b0c commit e2829f4Copy full SHA for e2829f4
linkedin2username.py
@@ -596,6 +596,9 @@ def clean(raw_list):
596
allowed_chars = re.compile('[^a-zA-Z -]')
597
for name in raw_list:
598
599
+ # Lower-case everything to make it easier to de-duplicate.
600
+ name = name.lower()
601
+
602
# Try to transform non-English characters below.
603
name = remove_accents(name)
604
@@ -604,9 +607,6 @@ def clean(raw_list):
607
# People like to feel special, I guess.
605
608
name = allowed_chars.sub('', name)
606
609
- # Lower-case everything to make it easier to de-duplicate.
- name = name.lower()
-
610
# The line below tries to consolidate white space between words
611
# and get rid of leading/trailing spaces.
612
name = re.sub(r'\s+', ' ', name).strip()
0 commit comments