fix regex to be non-greedy
This commit is contained in:
parent
05f28b71bd
commit
d3763d51c3
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue