Fix slightly incorrect pattern for matching filters (only matters on incorrect filters).

This commit is contained in:
bakpakin 2016-05-19 18:18:39 +08:00
parent ee192d94af
commit 0488bff1d9

View File

@ -136,7 +136,7 @@ do
subParts[#subParts + 1] = buildPart(p:sub(2, -2))
return ('\255%d'):format(#subParts)
end)
for invert, part, sep in str:gmatch('(%!?)([^%|%&%!]+)([%|%&%!]?)') do
for invert, part, sep in str:gmatch('(%!?)([^%|%&%!]+)([%|%&]?)') do
if part:match('^\255%d+$') then
local partIndex = tonumber(part:match(part:sub(2)))
accum[#accum + 1] = ('%s(%s)'):format(invert == '' and '' or 'not', subParts[partIndex])