fix 8x spaces inside this paren

This commit is contained in:
Dym Sohin 2020-09-21 17:42:17 +02:00
parent fee654f1ee
commit f1e1f20a8d
2 changed files with 4 additions and 4 deletions

View File

@ -13,8 +13,8 @@ const filterByKeyword = (list, keyword = '') => {
const keywordLowercase = keyword.toLowerCase()
const orderedEmojiList = []
for (const emoji of list) {
const indexOfKeyword = emoji.displayText.toLowerCase().indexOf( keywordLowercase )
if ( indexOfKeyword > -1 ) {
const indexOfKeyword = emoji.displayText.toLowerCase().indexOf(keywordLowercase)
if (indexOfKeyword > -1) {
orderedEmojiList.splice(indexOfKeyword, 0, emoji)
}
}

View File

@ -31,8 +31,8 @@ const ReactButton = {
const filterWordLowercase = this.filterWord.toLowerCase()
const orderedEmojiList = []
for (const emoji of this.$store.state.instance.emoji) {
const indexOfFilterWord = emoji.displayText.toLowerCase().indexOf( filterWordLowercase )
if ( indexOfFilterWord > -1 ) {
const indexOfFilterWord = emoji.displayText.toLowerCase().indexOf(filterWordLowercase)
if (indexOfFilterWord > -1) {
orderedEmojiList.splice(indexOfFilterWord, 0, emoji)
}
}