Replace all column spaces with underscores when performing internal searches
This commit is contained in:
parent
125fc19e65
commit
47f3ad306b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue