Check substring if contains not array
This commit is contained in:
parent
55ce83c444
commit
e58cd0a106
|
@ -309,7 +309,7 @@ export class QueryBuilder<T> {
|
|||
return null
|
||||
}
|
||||
if (!Array.isArray(value)) {
|
||||
return `${key}:${value}`
|
||||
return `${key}:/${value?.toLowerCase()}/`
|
||||
}
|
||||
let statement = `${builder.preprocess(value[0], { escape: true })}`
|
||||
for (let i = 1; i < value.length; i++) {
|
||||
|
|
|
@ -22,6 +22,7 @@ export const getValidOperatorsForType = (
|
|||
Op.Empty,
|
||||
Op.NotEmpty,
|
||||
Op.In,
|
||||
Op.Contains,
|
||||
]
|
||||
const numOps = [
|
||||
Op.Equals,
|
||||
|
|
Loading…
Reference in New Issue