This commit is contained in:
Erik Lilja 2024-11-10 15:55:14 +01:00 committed by GitHub
commit d724b64371
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ function M:add(plugin)
-- short url / ref
if plugin[1] then
if type(plugin[1]) ~= "string" then
return self.spec:error("Invalid plugin spec " .. vim.inspect(plugin))
end
local slash = plugin[1]:find("/", 1, true)
if slash then
local prefix = plugin[1]:sub(1, 4)