cf
This commit is contained in:
parent
f8cc1c2022
commit
77bab433e0
1 changed files with 5 additions and 2 deletions
|
|
@ -21,8 +21,11 @@ export function Reference() {
|
|||
return true;
|
||||
}
|
||||
|
||||
const lowCaseSearch = search.toLowerCase();
|
||||
return entry.name.toLowerCase().includes(lowCaseSearch) || (entry.synonyms?.some((s) => s.includes(lowCaseSearch)) ?? false);
|
||||
const lowCaseSearch = search.toLowerCase();
|
||||
return (
|
||||
entry.name.toLowerCase().includes(lowCaseSearch) ||
|
||||
(entry.synonyms?.some((s) => s.includes(lowCaseSearch)) ?? false)
|
||||
);
|
||||
});
|
||||
}, [search]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue