1
0
Fork 0
mirror of synced 2024-07-13 18:26:06 +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 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++) {

View file

@ -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,