Skip to content

Commit

Permalink
fix(core): ensure Github repo slug can be resolved in `nx release cha…
Browse files Browse the repository at this point in the history
…ngelog` (#20001)
  • Loading branch information
guysenpai authored Nov 6, 2023
1 parent b8cd45e commit 33ca596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/command-line/release/utils/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function getGitHubRepoSlug(remoteName = 'origin'): RepoSlug {
}).trim();

// Extract the 'user/repo' part from the URL
const regex = /github\.com[/:]([\w-]+\/[\w-]+)\.git/;
const regex = /github\.com[/:]([\w-]+\/[\w-]+)/;
const match = remoteUrl.match(regex);

if (match && match[1]) {
Expand Down

0 comments on commit 33ca596

Please sign in to comment.