Removing emoji from display name

merge-requests/21/head
Bob Mottram 2021-03-03 22:05:56 +00:00
parent 108e27ca95
commit 88ded160b4
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ def _removeEmojiFromText(sayText: str) -> str:
for word in wordsList:
if word.startswith(':'):
if word.endswith(':'):
replacements[word] = word.replace('*', '')
replacements[word] = ''
for replaceStr, newStr in replacements.items():
sayText = sayText.replace(replaceStr, newStr)
return sayText.replace(' ', ' ').strip()