mirror of
https://github.com/nix-community/noogle.git
synced 2024-11-24 02:45:48 +03:00
fix: search not returning matches
This commit is contained in:
parent
ae81eb869b
commit
1bfc0acbc9
@ -22,13 +22,10 @@ const search =
|
||||
return Object.values(item).some((value) => {
|
||||
if (value) {
|
||||
if (typeof value === "object" && value.length > 0) {
|
||||
return value
|
||||
.join("\n")
|
||||
.toLocaleLowerCase()
|
||||
.includes(term.toLowerCase());
|
||||
return value.join("\n").toLowerCase().includes(term.toLowerCase());
|
||||
}
|
||||
const valueAsString = value.toString();
|
||||
return valueAsString.toLowerCase().includes(term.toLocaleLowerCase());
|
||||
return valueAsString.toLowerCase().includes(term.toLowerCase());
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user