fix(luarocks): proper parsing of dependency name. Closes #2086

This commit is contained in:
Folke Lemaitre 2025-11-06 10:24:29 +01:00
commit 5c09e6fe71
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -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)