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

This commit is contained in:
Book Pauk
2022-10-23 19:05:17 +07:00
parent ea6d61ac6f
commit 784dda03fd
2 changed files with 5 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ class DbSearcher {
a = a.substring(1);
where = `@indexIter('value', (v) => {
const enru = new Set(${db.esc(enruArr)});
return !v || (!enru.has(v[0].toLowerCase()) && v.indexOf(${db.esc(a)}) >= 0);
return !v || (!enru.has(v[0]) && v.indexOf(${db.esc(a)}) >= 0);
})`;
} else {
where = `@dirtyIndexLR('value', ${db.esc(a)}, ${db.esc(a + maxUtf8Char)})`;