Content deleted Content added
test: debug Tag: Reverted |
test: debug Tag: Reverted |
||
Line 128:
as_key_content_function = function(text)
local function func(content)
table.insert(d, {concatype = 'key', text = text, content = content, result = text:gsub("__M_CONTENT__", escape_replacement(content))})
return text:gsub("__M_CONTENT__", escape_replacement(content))
end
Line 138:
as_value_content_function = function(text)
local function func(category)
table.insert(d, {concatype = 'value', text = text, category = category, result = text:gsub("__M_CATEGORY__", escape_replacement(category))})
return text:gsub("__M_CATEGORY__", escape_replacement(category))
end
Line 149:
local function func(left, right)
-- some improvements could be made here
table.insert(d, {concatype = 'fold', text = text, left = left, right = right, result = text:gsub("__M_LEFT__", escape_replacement(left)):gsub("__M_RIGHT__", escape_replacement(right))})
return text:gsub("__M_LEFT__", escape_replacement(left)):gsub("__M_RIGHT__", escape_replacement(right))
end
|