Using allPreProcessingOpts
This commit is contained in:
parent
08f1ddddd0
commit
f84bf5f337
|
@ -235,15 +235,15 @@ class QueryBuilder {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const preprocess = item => {
|
let orStatement = `${builder.preprocess(
|
||||||
return builder.preprocess(item, {
|
value[0],
|
||||||
escape: true,
|
allPreProcessingOpts
|
||||||
lowercase: true,
|
)}`
|
||||||
})
|
|
||||||
}
|
|
||||||
let orStatement = `"${preprocess(value[0])}"`
|
|
||||||
for (let i = 1; i < value.length; i++) {
|
for (let i = 1; i < value.length; i++) {
|
||||||
orStatement += ` OR "${preprocess(value[i])}"`
|
orStatement += ` OR ${builder.preprocess(
|
||||||
|
value[i],
|
||||||
|
allPreProcessingOpts
|
||||||
|
)}`
|
||||||
}
|
}
|
||||||
return `${key}:(${orStatement})`
|
return `${key}:(${orStatement})`
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue