মডিউল:TableTools: সংশোধিত সংস্করণের মধ্যে পার্থক্য
escape prefix and suffix strings in affixNums so that magic characters are interpreted literally |
fix cleanPattern function - some of the character classes were still being magic even when they were inside the set, so escape them all |
||
১৩৬ নং লাইন: | ১৩৬ নং লাইন: | ||
local function cleanPattern(s) | local function cleanPattern(s) | ||
-- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally. | -- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally. | ||
s = s:gsub('([()%%.%[%]*+-?^$])', '%%%1') | s = s:gsub('([%(%)%%%.%[%]%*%+%-%?%^%$])', '%%%1') | ||
return s | return s | ||
end | end |