mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 18:17:38 +00:00
Normaize search
This commit is contained in:
parent
2e1f7244ef
commit
ba88e28e8b
1 changed files with 2 additions and 1 deletions
|
|
@ -25,9 +25,10 @@ export function getMatchingSkinHashes(state) {
|
|||
if (searchQuery == null) {
|
||||
return hashes;
|
||||
}
|
||||
const normalizedSearchQuery = searchQuery.toLowerCase();
|
||||
return hashes.filter(hash => {
|
||||
const { fileName } = skins[hash];
|
||||
return fileName.includes(searchQuery);
|
||||
return fileName.toLowerCase().includes(normalizedSearchQuery);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue