fix
This commit is contained in:
@@ -78,7 +78,7 @@ local function parseGiteaURL(url)
|
|||||||
}
|
}
|
||||||
local lowerUrl = string.lower(url)
|
local lowerUrl = string.lower(url)
|
||||||
if not string.endsWith(lowerUrl, ending) then error("A gitea link needs to end with " .. ending) end
|
if not string.endsWith(lowerUrl, ending) then error("A gitea link needs to end with " .. ending) end
|
||||||
for proto in protocols do
|
for _, proto in pairs(protocols) do
|
||||||
if string.beginsWith(lowerUrl, proto) then
|
if string.beginsWith(lowerUrl, proto) then
|
||||||
info.protocol = proto
|
info.protocol = proto
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user