1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

Check substring if contains not array

This commit is contained in:
Mel O'Hagan 2023-04-20 17:30:45 +01:00
parent 55ce83c444
commit e58cd0a106
2 changed files with 2 additions and 1 deletions

View file

@ -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++) {

View file

@ -22,6 +22,7 @@ export const getValidOperatorsForType = (
Op.Empty,
Op.NotEmpty,
Op.In,
Op.Contains,
]
const numOps = [
Op.Equals,