From e8c68ffdedd2d5c7656e11a85c9f26a4eb83e2ba Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 8 May 2025 13:37:11 -0300 Subject: [PATCH] fix: simplify regex pattern --- lua/CC Tweaked/tutel/tutel-host.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index 60c8d2f..0ff88ed 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -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