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 fd6718078b
commit da0429582a
1 changed files with 1 additions and 1 deletions

View File

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