aboutsummaryrefslogtreecommitdiff
path: root/builtin/common/misc_helpers.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-06-07 03:19:05 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-06-07 03:19:05 +0200
commitb11c0a6721cd884d78b38b63797dfdb933004e03 (patch)
tree629c49cda2995fafef2bf345abf31b39bd21ff69 /builtin/common/misc_helpers.lua
parent827b9f8d7054158b058679999d77c1345162a293 (diff)
parentedc7df54801ab3bf30f96ac5aad6ce11a102f6b9 (diff)
downloaddragonfireclient-b11c0a6721cd884d78b38b63797dfdb933004e03.tar.xz
Merge branch 'master' of https://github.com/minetest/minetest
Diffstat (limited to 'builtin/common/misc_helpers.lua')
-rw-r--r--builtin/common/misc_helpers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua
index f8a905c7b..1043675f6 100644
--- a/builtin/common/misc_helpers.lua
+++ b/builtin/common/misc_helpers.lua
@@ -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