fix(picker.util): for -- args require a space before

This commit is contained in:
Folke Lemaitre 2025-01-23 12:43:52 +01:00
parent 51adb6792e
commit ee6f21bbd6
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -202,7 +202,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