forked from Mineclonia/Mineclonia
items/mcl_banners: make `escape` local
This commit is contained in:
parent
ccc1ce566f
commit
5d0c9c77cd
|
@ -163,7 +163,7 @@ local make_banner_overlay = function(base_color, layers)
|
|||
lovl = (lovl ~= "" and (lovl .. "^") or "") .. layer
|
||||
end
|
||||
|
||||
function escape(text)
|
||||
local function escape(text)
|
||||
return text:gsub("%^", "\\%^"):gsub(":", "\\:") -- :gsub("%(", "\\%("):gsub("%)", "\\%)")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue