Changes

Jump to: navigation, search

Module:TableTools

9 bytes added, 09:11, 25 May 2014
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)
-- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally.
s = s:gsub('([%(%)%%%.%[%]%*%+%-%?%^%$])', '%%%1')
return s
end
Anonymous user

Navigation menu