Fixed improper handles with 3 dots.

This commit is contained in:
NotoriousRebel 2019-02-15 22:47:40 -05:00
parent 50ccf25832
commit 9184069021

View file

@ -40,9 +40,12 @@ def get_people(self):
if len(handle) > 2:
if ' ' in handle.strip():
handle = handle.split(' ')[0]
# strip off period at the end of exists
if handle[len(handle)-1] == '.':
handle = handle[:len(handle)-1]
# strip off period at the end if exists
elif handle[len(handle) - 1] == '.':
handle = handle[:len(handle) - 1]
# strip periods if contains three of them
elif '...' in handle.strip():
handle = handle[:handle.index('.')]
handles.add(handle)
return handles