fix regex to be non-greedy

This commit is contained in:
Lili (Tlapka) 2023-01-11 10:25:48 +01:00
parent 05f28b71bd
commit d3763d51c3
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ def send_chat(message):
def remove_emoji(message):
return sub(
r'<img class="emoji" alt="(:.*:)" title=":.*:" src="/img/emoji/.*">',
r'<img class="emoji" alt="(:.*?:)" title=":.*?:" src="/img/emoji/.*?">',
r'\1',
message
)