mirror of https://gitlab.com/bashrc2/epicyon
Extra characters to remove
parent
b4b6af70f5
commit
eabfdd367c
|
@ -37,7 +37,7 @@ def speakerReplaceLinks(sayText: str, translate: {}) -> str:
|
||||||
"""Replaces any links in the given text with "link to [domain]".
|
"""Replaces any links in the given text with "link to [domain]".
|
||||||
Instead of reading out potentially very long and meaningless links
|
Instead of reading out potentially very long and meaningless links
|
||||||
"""
|
"""
|
||||||
removeChars = ('.', ',', ';', ':')
|
removeChars = ('.', ',', ';', ':', '?', '!')
|
||||||
text = sayText
|
text = sayText
|
||||||
for ch in removeChars:
|
for ch in removeChars:
|
||||||
text = text.replace(ch, ' ')
|
text = text.replace(ch, ' ')
|
||||||
|
|
Loading…
Reference in New Issue