mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-25 15:03:01 +08:00
Fixed improper handles with 3 dots.
This commit is contained in:
parent
50ccf25832
commit
9184069021
1 changed files with 6 additions and 3 deletions
|
@ -40,9 +40,12 @@ def get_people(self):
|
||||||
if len(handle) > 2:
|
if len(handle) > 2:
|
||||||
if ' ' in handle.strip():
|
if ' ' in handle.strip():
|
||||||
handle = handle.split(' ')[0]
|
handle = handle.split(' ')[0]
|
||||||
# strip off period at the end of exists
|
# strip off period at the end if exists
|
||||||
if handle[len(handle)-1] == '.':
|
elif handle[len(handle) - 1] == '.':
|
||||||
handle = 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)
|
handles.add(handle)
|
||||||
return handles
|
return handles
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue