This commit is contained in:
2026-08-21 23:15:12 +02:00
parent c4555da4cf
commit 029bf80c51
+1 -1
View File
@@ -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