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):
|
def remove_emoji(message):
|
||||||
return sub(
|
return sub(
|
||||||
r'<img class="emoji" alt="(:.*:)" title=":.*:" src="/img/emoji/.*">',
|
r'<img class="emoji" alt="(:.*?:)" title=":.*?:" src="/img/emoji/.*?">',
|
||||||
r'\1',
|
r'\1',
|
||||||
message
|
message
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue