Maria
Created page with "local gmatch = string.gmatch local module_name = "string_utilities" local export = {} local format_escapes = { ["op"] = "{", ["cl"] = "}", } function export.format_fun(str, fun) return (str:gsub("{(\\?)((\\?)[^{}]*)}", function (p1, name, p2) if #p1 + #p2 == 1 then return format_escapes[name] or error(module_name .. ".format: unrecognized escape sequence '{\\" .. name .. "}'") else if fun(name) and type(fun(name)) ~= "string" then error(module_name ...."