fix: simplify regex pattern
This commit is contained in:
@@ -277,8 +277,7 @@ function processCommand()
|
||||
local cmd
|
||||
local args = {}
|
||||
|
||||
for word in commandBuffer:gmatch('[^%s"]+|"[^"]*"') do
|
||||
word = word:gsub('^"(.*)"$', '%1')
|
||||
for word in commandBuffer:gmatch("%S+") do
|
||||
if not cmd then
|
||||
cmd = word
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user