Поправки багов поиска

This commit is contained in:
Book Pauk
2022-10-23 19:26:59 +07:00
parent f1267879af
commit 723af3ea8b
2 changed files with 5 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ class DbSearcher {
where = `@dirtyIndexLR('value', ${db.esc(a)}, ${db.esc(a)})`;
} else if (a[0] == '*') {
a = a.substring(1);
where = `@indexIter('value', (v) => (v.indexOf(${db.esc(a)}) >= 0) )`;
where = `@indexIter('value', (v) => (v !== ${db.esc(emptyFieldValue)} && v.indexOf(${db.esc(a)}) >= 0) )`;
} else if (a[0] == '#') {
a = a.substring(1);
where = `@indexIter('value', (v) => {