Skip to content

Commit 1e76bc7

Browse files
committed
fix(faq): Make search case insensitive
1 parent 79b98ac commit 1e76bc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/faq.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ After two hours of trying floccus should override the lock and finally start syn
165165
this.filteredFaqs = this.faqs
166166
return
167167
}
168-
const queries = this.searchQuery.split(' ')
169-
this.filteredFaqs = this.faqs.filter(faq => queries.every(query => faq.question.includes(query)) || queries.every(query => faq.answer.includes(query)))
168+
const queries = this.searchQuery.toLowerCase().split(' ')
169+
this.filteredFaqs = this.faqs.filter(faq => queries.every(query => faq.question.toLowerCase().includes(query)) || queries.every(query => faq.answer.toLowerCase().includes(query)))
170170
}
171171
},
172172
head: {

0 commit comments

Comments
 (0)