From c0f5d9102a71cbe32d83136e2bc8f925b3dc91b7 Mon Sep 17 00:00:00 2001 From: TUNER88 Date: Thu, 11 Feb 2021 02:34:04 +0100 Subject: [PATCH] feat: add support for non .com gh enterprise domains (#1507) Co-authored-by: Anton Pauli --- src/lib/converter/plugins/GitHubPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/converter/plugins/GitHubPlugin.ts b/src/lib/converter/plugins/GitHubPlugin.ts index fae1646f5..21a29afa7 100644 --- a/src/lib/converter/plugins/GitHubPlugin.ts +++ b/src/lib/converter/plugins/GitHubPlugin.ts @@ -58,7 +58,7 @@ export class Repository { ShellJS.pushd(path); for (let i = 0, c = repoLinks.length; i < c; i++) { - const url = /(github(?:\.[a-z]+)*\.com)[:/]([^/]+)\/(.*)/.exec( + const url = /(github(?:\.[a-z]+)*\.[a-z]{2,})[:/]([^/]+)\/(.*)/.exec( repoLinks[i] );