Merge pull request #6426 from Budibase/fix/internal-search-spaces

Replace all column spaces with underscores when performing internal searches
This commit is contained in:
Andrew Kingston 2022-06-23 14:59:46 +01:00 committed by GitHub
commit 2aeba10b4d
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)