From 25495d2dcd3fa2664686af910503cc3393d574fc Mon Sep 17 00:00:00 2001 From: AFCMS Date: Tue, 6 Apr 2021 23:02:04 +0200 Subject: [PATCH] attemp to fix pattern for quoted text --- mods/CORE/mcl_commands/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/CORE/mcl_commands/api.lua b/mods/CORE/mcl_commands/api.lua index bc8884962..32fd12c03 100644 --- a/mods/CORE/mcl_commands/api.lua +++ b/mods/CORE/mcl_commands/api.lua @@ -52,7 +52,7 @@ mcl_commands.types = { return S("Word is invalid!") end end}, - quotestring = {[["([^ ]+)"]], + quotestring = {'["]+(.+)["]+', function(res, pointer) if res[pointer] == tostring(res[pointer]) then return nil, string.sub(tostring(res[pointer]), 2, #res[pointer]-1), pointer+1