Extra characters to remove

main
Bob Mottram 2021-03-01 21:22:00 +00:00
parent b4b6af70f5
commit eabfdd367c
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ def speakerReplaceLinks(sayText: str, translate: {}) -> str:
"""Replaces any links in the given text with "link to [domain]".
Instead of reading out potentially very long and meaningless links
"""
removeChars = ('.', ',', ';', ':')
removeChars = ('.', ',', ';', ':', '?', '!')
text = sayText
for ch in removeChars:
text = text.replace(ch, ' ')