diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2021-02-17 11:05:17 +0100 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2021-02-17 11:05:17 +0100 |
commit | 6ea39450579674b585ba6c544aba073dbbc41e2d (patch) | |
tree | f8714504a3a35c4fce3b823ca0a8d76a7ec08a01 | |
parent | 501d222d5c32ecac287a4c016a9107dee4822b16 (diff) | |
download | moretrains-6ea39450579674b585ba6c544aba073dbbc41e2d.tar.gz moretrains-6ea39450579674b585ba6c544aba073dbbc41e2d.tar.bz2 moretrains-6ea39450579674b585ba6c544aba073dbbc41e2d.zip |
Definitive fix for escape_texture. Thanks ywang.
-rw-r--r-- | moretrains_gondola/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moretrains_gondola/init.lua b/moretrains_gondola/init.lua index 393ce65..06dce82 100644 --- a/moretrains_gondola/init.lua +++ b/moretrains_gondola/init.lua @@ -7,7 +7,7 @@ end local function escape_texture(str) - return str:gsub("[\\[]", "\\["):gsub(":", "\\:"):gsub("[\\^]", "\\^") + return str:gsub("[%[%()^:]", "\\%1") end local function set_textures(self, data) |