Replace all column spaces with underscores when performing internal searches

This commit is contained in:
Andrew Kingston 2022-06-22 12:39:55 +01:00
parent 125fc19e65
commit 47f3ad306b
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class QueryBuilder {
function build(structure, queryFn) { function build(structure, queryFn) {
for (let [key, value] of Object.entries(structure)) { for (let [key, value] of Object.entries(structure)) {
key = builder.preprocess(key.replace(/ /, "_"), { key = builder.preprocess(key.replace(/ /g, "_"), {
escape: true, escape: true,
}) })
const expression = queryFn(key, value) const expression = queryFn(key, value)