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