fix(luarocks): proper parsing of dependency name. Closes #2086
This commit is contained in:
parent
e6a8824858
commit
5c09e6fe71
|
|
@ -285,7 +285,10 @@ function M.get(plugin)
|
||||||
|
|
||||||
---@param dep string
|
---@param dep string
|
||||||
local rocks = vim.tbl_filter(function(dep)
|
local rocks = vim.tbl_filter(function(dep)
|
||||||
local name = dep:gsub("%s.*", "")
|
local name = dep:match("^%s*([^~><=%s]+)")
|
||||||
|
if not name then
|
||||||
|
return false
|
||||||
|
end
|
||||||
local url = Community.get_url(name)
|
local url = Community.get_url(name)
|
||||||
local spec = Community.get_spec(name)
|
local spec = Community.get_spec(name)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue