Skip to content

Commit c0f5d91

Browse files
TUNER88Anton Pauli
andauthored
feat: add support for non .com gh enterprise domains (#1507)
Co-authored-by: Anton Pauli <[email protected]>
1 parent 21fa828 commit c0f5d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/converter/plugins/GitHubPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class Repository {
5858
ShellJS.pushd(path);
5959

6060
for (let i = 0, c = repoLinks.length; i < c; i++) {
61-
const url = /(github(?:\.[a-z]+)*\.com)[:/]([^/]+)\/(.*)/.exec(
61+
const url = /(github(?:\.[a-z]+)*\.[a-z]{2,})[:/]([^/]+)\/(.*)/.exec(
6262
repoLinks[i]
6363
);
6464

0 commit comments

Comments
 (0)