mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.util): relax pattern for args
This commit is contained in:
parent
c07497d591
commit
6b7705c7ed
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue