mirror of https://gitlab.com/bashrc2/epicyon
Removing emoji from display name
parent
108e27ca95
commit
88ded160b4
|
@ -206,7 +206,7 @@ def _removeEmojiFromText(sayText: str) -> str:
|
||||||
for word in wordsList:
|
for word in wordsList:
|
||||||
if word.startswith(':'):
|
if word.startswith(':'):
|
||||||
if word.endswith(':'):
|
if word.endswith(':'):
|
||||||
replacements[word] = word.replace('*', '')
|
replacements[word] = ''
|
||||||
for replaceStr, newStr in replacements.items():
|
for replaceStr, newStr in replacements.items():
|
||||||
sayText = sayText.replace(replaceStr, newStr)
|
sayText = sayText.replace(replaceStr, newStr)
|
||||||
return sayText.replace(' ', ' ').strip()
|
return sayText.replace(' ', ' ').strip()
|
||||||
|
|
Loading…
Reference in New Issue