Update misc_helpers.lua

master
zmv7 2022-08-09 17:17:31 +05:00 committed by GitHub
parent 0810698049
commit 86fd31df03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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("%]", "\\]")