Fixed convertToFilter.
This commit is contained in:
parent
6309877cf2
commit
9fa52dce96
|
@ -106,11 +106,11 @@ local function convertToFilter(var)
|
||||||
if type(var) == "table" and #var > 0 and type(var[1]) == "string" then
|
if type(var) == "table" and #var > 0 and type(var[1]) == "string" then
|
||||||
local filters = {}
|
local filters = {}
|
||||||
for _, expr in pairs(var) do
|
for _, expr in pairs(var) do
|
||||||
table.insert(filters, parseFilterExpression(expr))
|
table.insert(filters, parseItemFilterExpression(expr))
|
||||||
end
|
end
|
||||||
return orFilter(filters)
|
return orFilter(filters)
|
||||||
elseif type(var) == "string" then
|
elseif type(var) == "string" then
|
||||||
return parseFilterExpression(var)
|
return parseItemFilterExpression(var)
|
||||||
elseif type(var) == "function" then
|
elseif type(var) == "function" then
|
||||||
return var
|
return var
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue