]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - builtin/common/misc_helpers.lua
Merge branch 'master' of https://github.com/minetest/minetest
[dragonfireclient.git] / builtin / common / misc_helpers.lua
index f8a905c7bbf6d819e9009022fa9bcb4d2c687245..1043675f67e9247bcaf3f26605ba97001b9d5283 100644 (file)
@@ -254,7 +254,7 @@ local formspec_escapes = {
 }
 function core.formspec_escape(text)
        -- Use explicit character set instead of dot here because it doubles the performance
-       return text and text:gsub("[\\%[%];,]", formspec_escapes)
+       return text and string.gsub(text, "[\\%[%];,]", formspec_escapes)
 end