mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 11:18:26 +00:00
fix(picker.util): for --
args require a space before
This commit is contained in:
parent
51adb6792e
commit
ee6f21bbd6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue