mirror of
https://github.com/trailbaseio/trailbase.git
synced 2026-01-06 09:50:10 -06:00
Minor: fix github link construction. Node's join strips off url scheme.
This commit is contained in:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user