forked from AkkomaGang/akkoma-fe
Allow for searching unicode emoji via inputting emoji
(This is needed for the react menu)
This commit is contained in:
parent
d03969eb03
commit
240389a83f
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ const EmojiPicker = {
|
||||||
if (this.keyword === '') return list
|
if (this.keyword === '') return list
|
||||||
const regex = new RegExp(escapeRegExp(trim(this.keyword)), 'i')
|
const regex = new RegExp(escapeRegExp(trim(this.keyword)), 'i')
|
||||||
return list.filter(emoji => {
|
return list.filter(emoji => {
|
||||||
return regex.test(emoji.displayText)
|
return (regex.test(emoji.displayText) || (!emoji.imageUrl && emoji.replacement === this.keyword))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue