forked from rDrama/rDrama
minor regex fix for emojis
parent
49263fdd86
commit
1f675c61e5
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue