Skip to content

Commit

Permalink
feat: add support for non .com gh enterprise domains (#1507)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Pauli <apauli@ebay.com>
  • Loading branch information
TUNER88 and Anton Pauli committed Feb 11, 2021
1 parent 21fa828 commit c0f5d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/converter/plugins/GitHubPlugin.ts
Expand Up @@ -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]
);

Expand Down

0 comments on commit c0f5d91

Please sign in to comment.