fix emoji title being shown next to the emoji

This commit is contained in:
Mystikfluu 2022-08-27 19:21:10 +02:00
parent 58838c8810
commit 670d4efbb1

View File

@ -30,7 +30,7 @@ function filterMentions(text) {
const emojiregex = /:([^:\s]*):/gi
function emojify(text) {
return text.replace(emojiregex,"<img class='emoji' src='/images/emoji/$1.png' alt='$1' width=20 height=20/> title=':$1:'")
return text.replace(emojiregex,"<img class='emoji' src='/images/emoji/$1.png' alt='$1' title=':$1:' width=20 height=20/>")
}
function unemojify(text){