fix(picker.util): relax pattern for args

This commit is contained in:
Folke Lemaitre 2025-01-20 10:36:42 +01:00
parent c07497d591
commit 6b7705c7ed
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -153,7 +153,7 @@ end
---@return string text, string[] args
function M.parse(str)
-- Format: this is a test -- -g=hello
local t, a = str:match("^(.-)%s*%-%-%s+(.+)$")
local t, a = str:match("^(.-)%s*%-%-%s*(.*)$")
if not t then
return str, {}
end