fix emoji title being shown next to the emoji
This commit is contained in:
parent
58838c8810
commit
670d4efbb1
@ -30,7 +30,7 @@ function filterMentions(text) {
|
|||||||
|
|
||||||
const emojiregex = /:([^:\s]*):/gi
|
const emojiregex = /:([^:\s]*):/gi
|
||||||
function emojify(text) {
|
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){
|
function unemojify(text){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user