mirror of
https://github.com/hsjobeki/noogle.git
synced 2024-09-11 21:07:53 +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