From 88ded160b47b7553b32b435af0b83aa6a805879c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 3 Mar 2021 22:05:56 +0000 Subject: [PATCH] Removing emoji from display name --- speaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speaker.py b/speaker.py index 447c86423..5fe59311b 100644 --- a/speaker.py +++ b/speaker.py @@ -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()