From b359af7af9f40cd174fa6e7981e3baa2e07f2155 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 4 Jun 2020 13:58:08 +0100 Subject: [PATCH] Removed Unnecessary Space --- expcore/commands.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/expcore/commands.lua b/expcore/commands.lua index 58efcbab..548fdddd 100644 --- a/expcore/commands.lua +++ b/expcore/commands.lua @@ -748,8 +748,7 @@ function Commands.run_command(command_event) -- Extract quoted arguments local raw_input = command_event.parameter or '' local quote_params = {} - local input_string = (' '..raw_input):gsub(' "[^"]-"', function(match) - local word = match:sub(2) + local input_string = raw_input:gsub('"[^"]-"', function(word) local no_spaces = word:gsub('%s', '%%s') quote_params[no_spaces] = word:sub(2, -2) return ' '..no_spaces..' '