Skip to content

Commit d89993d

Browse files
committed
fix URL parsing bug
1 parent b9c2709 commit d89993d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/UnidocLinker/Resolver/Unidoc.Resolver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ extension Unidoc.Resolver
223223

224224
// Skip the two slashes.
225225
guard let start:String.Index = url.index(colon, offsetBy: 3, limitedBy: url.endIndex),
226-
case "//" = url[colon ..< start]
226+
case "//" = url[url.index(after: colon) ..< start]
227227
else
228228
{
229229
return .url(url, safe: false)

0 commit comments

Comments
 (0)