1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-24 01:05:16 +01:00

[fix] case in/sensitive emoji search

This commit is contained in:
Dym Sohin 2020-09-18 11:07:38 +02:00
parent ee620f6028
commit 70a5619496

View File

@ -8,7 +8,10 @@ const LOAD_EMOJI_BY = 60
const LOAD_EMOJI_MARGIN = 64
const filterByKeyword = (list, keyword = '') => {
return list.filter(x => x.displayText.includes(keyword))
const keywordLowercase = keyword.toLowerCase()
return list.filter(emoji =>
emoji.displayText.toLowerCase().includes(keywordLowercase)
)
}
const EmojiPicker = {