From 0488bff1d9d8ec3b2535ea2a6d9fa8ce3d24310e Mon Sep 17 00:00:00 2001 From: bakpakin Date: Thu, 19 May 2016 18:18:39 +0800 Subject: [PATCH] Fix slightly incorrect pattern for matching filters (only matters on incorrect filters). --- tiny.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny.lua b/tiny.lua index 9f6e23c..f99dff5 100644 --- a/tiny.lua +++ b/tiny.lua @@ -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])