items/mcl_banners: make `escape` local

This commit is contained in:
E 2021-04-22 22:22:08 -04:00
parent 05a624bfa6
commit f7dc051adf
1 changed files with 1 additions and 1 deletions

View File

@ -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