Update misc_helpers.lua
parent
0810698049
commit
86fd31df03
|
@ -249,6 +249,7 @@ function math.factorial(x)
|
|||
end
|
||||
|
||||
function core.formspec_escape(text)
|
||||
text = tostring(text)
|
||||
if text ~= nil then
|
||||
text = text:gsub("\\", "\\\\")
|
||||
text = text:gsub("%]", "\\]")
|
||||
|
|
Loading…
Reference in New Issue