Ignore zero width space
This commit is contained in:
parent
0d2dd03691
commit
c3459defed
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ for line in sys.stdin:
|
|||
for emoji, numb in NUMBER_EMOJI.items():
|
||||
message = re.sub(f" *:{emoji}: *", numb, message)
|
||||
message = re.sub(" ?:(?:green)?num([0-9]+): ?", lambda m: m.group(1), message)
|
||||
message = message.replace("\ufe0f", "").replace("\u20e3", "")
|
||||
message = message.replace("\ufe0f", "").replace("\u20e3", "").replace("\u200b", "")
|
||||
message = message.strip()
|
||||
else:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue