mirror of https://gitlab.com/bashrc2/epicyon
Getting petname
parent
4f575e8316
commit
36303ab578
|
@ -79,8 +79,9 @@ def getPetName(baseDir: str, nickname: str, domain: str,
|
|||
petnamesList = petnamesStr.split('\n')
|
||||
handle = handle.lower()
|
||||
for pet in petnamesList:
|
||||
if pet.endswith(' ' + handle):
|
||||
return pet.replace(' ' + handle, '').strip()
|
||||
if pet.lower().endswith(' ' + handle):
|
||||
handle2 = pet.split(' ')[-1]
|
||||
return pet.replace(' ' + handle2, '').strip()
|
||||
return ''
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue