minor regex fix for emojis

pull/44/head
Aevann1 2022-12-04 00:26:05 +02:00
parent 49263fdd86
commit 1f675c61e5
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ def render_emoji(html, regexp, golden, marseys_used, b=False):
if emoji_html:
marseys_used.add(emoji)
html = re.sub(f'(?<!"){i.group(0)}', emoji_html, html)
html = re.sub(f'(?<!"){i.group(0)}(?![^<]*<\/(code|pre|a)>)', emoji_html, html)
return html