Module:TableTools: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
fix cleanPattern function - some of the character classes were still being magic even when they were inside the set, so escape them all
(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)
Line 136:
local function cleanPattern(s)
-- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally.
s = s:gsub('([%(%)%%%.%[%]%*%+%-%?%^%$])', '%%%1')
return s
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu