minor regex fix for emojis

pull/35/head
Aevann1 2022-12-04 00:26:05 +02:00 committed by justcool393
parent 4dd1afe5d5
commit 69c2486e1c
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,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