We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6a8824 commit 5c09e6fCopy full SHA for 5c09e6f
1 file changed
lua/lazy/pkg/rockspec.lua
@@ -285,7 +285,10 @@ function M.get(plugin)
285
286
---@param dep string
287
local rocks = vim.tbl_filter(function(dep)
288
- local name = dep:gsub("%s.*", "")
+ local name = dep:match("^%s*([^~><=%s]+)")
289
+ if not name then
290
+ return false
291
+ end
292
local url = Community.get_url(name)
293
local spec = Community.get_spec(name)
294
0 commit comments