mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-06 11:48:23 +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
|
---@return string text, string[] args
|
||||||
function M.parse(str)
|
function M.parse(str)
|
||||||
-- Format: this is a test -- -g=hello
|
-- 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
|
if not t then
|
||||||
return str, {}
|
return str, {}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue