Minor: fix github link construction. Node's join strips off url scheme.

This commit is contained in:
Sebastian Jeltsch
2025-08-07 11:16:26 +02:00
parent 995889e897
commit 23c970b31d

View File

@@ -31,7 +31,7 @@ export function githubCodeReference(args: {
case 0:
throw new Error(`Not match for '${args.match}' in: ${args.path}`);
case 1:
return join(repo, `/blob/main/${args.path}#L${matches[0]}`);
return `${repo}/blob/main/${args.path}#L${matches[0]}`;
default:
throw new Error(
`Ambiguous matches for '${args.match}' at lines: ${matches} in: ${args.path}`,