We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b092cc commit c91411eCopy full SHA for c91411e
src/parser.ts
@@ -88,7 +88,7 @@ export class Parser {
88
} else {
89
throw new ExitError("Could not locate.gitconfig or .git/config file");
90
}
91
- const gitRemoteMatch = gitConfig.match(/url = .*(?:https:\/\/|@)(?<domain>.*?)[:|\/](?<group>.*)\/(?<project>.*)(?:\r?\n|\.git)/);
+ const gitRemoteMatch = gitConfig.match(/url = .*(?:https:\/\/|@)(?<domain>.*?)[:|/](?<group>.*)\/(?<project>.*)(?:\r?\n|\.git)/);
92
assert(gitRemoteMatch?.groups != null, "git config didn't provide valid matches");
93
assert(gitRemoteMatch.groups.domain != null, "<domain> not found in git config");
94
assert(gitRemoteMatch.groups.group != null, "<group> not found in git config");
0 commit comments