emoji-picker-emoji #163

Closed
Beefox wants to merge 28 commits from Beefox/fox-fe:emoji-picker-emoji into develop
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 1ffe517c97 - Show all commits

View File

@ -138,7 +138,7 @@ const EmojiPicker = {
if (this.keyword === '') return list
const regex = new RegExp(escapeRegExp(trim(this.keyword)), 'i')
return list.filter(emoji => {
return regex.test(emoji.displayText)
return (regex.test(emoji.displayText) || (!emoji.imageUrl && emoji.replacement === this.keyword))
})
}
},