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
|
return null
|
||||||
}
|
}
|
||||||
if (!Array.isArray(value)) {
|
if (!Array.isArray(value)) {
|
||||||
return `${key}:${value}`
|
return `${key}:/${value?.toLowerCase()}/`
|
||||||
}
|
}
|
||||||
let statement = `${builder.preprocess(value[0], { escape: true })}`
|
let statement = `${builder.preprocess(value[0], { escape: true })}`
|
||||||
for (let i = 1; i < value.length; i++) {
|
for (let i = 1; i < value.length; i++) {
|
||||||
|
|
|
@ -22,6 +22,7 @@ export const getValidOperatorsForType = (
|
||||||
Op.Empty,
|
Op.Empty,
|
||||||
Op.NotEmpty,
|
Op.NotEmpty,
|
||||||
Op.In,
|
Op.In,
|
||||||
|
Op.Contains,
|
||||||
]
|
]
|
||||||
const numOps = [
|
const numOps = [
|
||||||
Op.Equals,
|
Op.Equals,
|
||||||
|
|
Loading…
Reference in New Issue