make reactions-search case-insensitive
This commit is contained in:
parent
297a0c1f7f
commit
00d662c4a0
1 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,10 @@ const ReactButton = {
|
||||||
},
|
},
|
||||||
emojis () {
|
emojis () {
|
||||||
if (this.filterWord !== '') {
|
if (this.filterWord !== '') {
|
||||||
return this.$store.state.instance.emoji.filter(emoji => emoji.displayText.includes(this.filterWord))
|
const filterWordLowercase = this.filterWord.toLowerCase()
|
||||||
|
return this.$store.state.instance.emoji.filter(emoji =>
|
||||||
|
emoji.displayText.toLowerCase().includes(filterWordLowercase)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
return this.$store.state.instance.emoji || []
|
return this.$store.state.instance.emoji || []
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue