Commit 28316b02 authored by janis.streib's avatar janis.streib 🦉
Browse files

UPD: better default search function

parent 6f27264e
...@@ -44,10 +44,10 @@ export default { ...@@ -44,10 +44,10 @@ export default {
type: Function, type: Function,
default() { default() {
return function (item, term) { return function (item, term) {
term = term.toLowerCase()
for (const v of Object.values(item)) { for (const v of Object.values(item)) {
window.console.debug(typeof v)
if (typeof v === 'string') { if (typeof v === 'string') {
if (v.includes(term)) { if (v.toLowerCase().includes(term)) {
return true return true
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment