From 84de4ea7283dd14912524f3f6393f3c0c1165f15 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Mon, 8 Mar 2021 16:18:37 +0100 Subject: [PATCH] cleanup --- mods/MISC/mcl_commands/init.lua | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/mods/MISC/mcl_commands/init.lua b/mods/MISC/mcl_commands/init.lua index 381413c46..df075a5fb 100644 --- a/mods/MISC/mcl_commands/init.lua +++ b/mods/MISC/mcl_commands/init.lua @@ -52,18 +52,7 @@ end local STATE_READY = 1 local STATE_PARAM = 2 local STATE_PARAM_TYPE = 3 -local bad_chars = {} -bad_chars["("] = true -bad_chars[")"] = true -bad_chars["."] = true -bad_chars["%"] = true -bad_chars["+"] = true -bad_chars["-"] = true -bad_chars["*"] = true -bad_chars["?"] = true -bad_chars["["] = true -bad_chars["^"] = true -bad_chars["$"] = true +local bad_chars = {"(", ")", ".", "%", "+", "-", "*", "?", "[", "^", "$"} local function escape(char) if bad_chars[char] then return "%" .. char