selector = function() | selector = function() | ||||
local elts = rule.selector(task) | local elts = rule.selector(task) | ||||
if type(elts) == 'table' then | |||||
for _,elt in ipairs(elts) do | |||||
match_rule(rule, elt) | |||||
if elts then | |||||
if type(elts) == 'table' then | |||||
for _,elt in ipairs(elts) do | |||||
match_rule(rule, elt) | |||||
end | |||||
else | |||||
match_rule(rule, elts) | |||||
end | end | ||||
else | |||||
match_rule(rule, elts) | |||||
end | end | ||||
end, | end, | ||||
} | } |