Merge branch 'main' into glossing/scale-with-note-and-n
This commit is contained in:
commit
39a73f2499
1 changed files with 3 additions and 3 deletions
|
|
@ -44,10 +44,10 @@ export function Reference() {
|
|||
return true;
|
||||
}
|
||||
|
||||
const lowCaseSearch = search.toLowerCase();
|
||||
const lowerCaseSearch = search.toLowerCase();
|
||||
return (
|
||||
entry.name.toLowerCase().includes(lowCaseSearch) ||
|
||||
(entry.synonyms?.some((s) => s.includes(lowCaseSearch)) ?? false)
|
||||
entry.name.toLowerCase().includes(lowerCaseSearch) ||
|
||||
(entry.synonyms?.some((s) => s.toLowerCase().includes(lowerCaseSearch)) ?? false)
|
||||
);
|
||||
});
|
||||
}, [search]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue