fix: simplify regex pattern

This commit is contained in:
2025-05-08 13:37:11 -03:00
parent 5aea3bb618
commit e8c68ffded
+1 -2
View File
@@ -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