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')
|
petnamesList = petnamesStr.split('\n')
|
||||||
handle = handle.lower()
|
handle = handle.lower()
|
||||||
for pet in petnamesList:
|
for pet in petnamesList:
|
||||||
if pet.endswith(' ' + handle):
|
if pet.lower().endswith(' ' + handle):
|
||||||
return pet.replace(' ' + handle, '').strip()
|
handle2 = pet.split(' ')[-1]
|
||||||
|
return pet.replace(' ' + handle2, '').strip()
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue