Case-insensitive icon search

This commit is contained in:
Cohee 2024-09-06 14:22:36 +00:00
parent 0388d3eb6c
commit bcd8a28367

View File

@ -2068,7 +2068,7 @@ export async function showFontAwesomePicker(customList = null) {
qry.placeholder = 'Filter icons';
qry.autofocus = true;
const qryDebounced = debounce(() => {
const result = faList.filter(fa => fa.find(className=>className.includes(qry.value)));
const result = faList.filter(fa => fa.find(className=>className.includes(qry.value.toLowerCase())));
for (const fa of faList) {
if (!result.includes(fa)) {
fas[fa].classList.add('hidden');