Emoji Tooltip: Fix for Firefox (#1376)

This commit is contained in:
Alexander Zinchuk 2021-08-12 15:36:30 +03:00
parent 26ed61ac52
commit 5a23d30a21

View File

@ -191,6 +191,7 @@ function getEmojiCode(html: string) {
const emojis = html const emojis = html
.replace(RE_SPACE, ' ') .replace(RE_SPACE, ' ')
.replace(RE_BR, '\n') .replace(RE_BR, '\n')
.replace(/\n$/i, '')
.replace(RE_CLEAN_HTML, '') .replace(RE_CLEAN_HTML, '')
.match(RE_EMOJI_SEARCH); .match(RE_EMOJI_SEARCH);