Skip to content

Commit

Permalink
Remove unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
firecow committed May 12, 2021
1 parent 6b092cc commit c91411e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class Parser {
} else {
throw new ExitError("Could not locate.gitconfig or .git/config file");
}
const gitRemoteMatch = gitConfig.match(/url = .*(?:https:\/\/|@)(?<domain>.*?)[:|\/](?<group>.*)\/(?<project>.*)(?:\r?\n|\.git)/);
const gitRemoteMatch = gitConfig.match(/url = .*(?:https:\/\/|@)(?<domain>.*?)[:|/](?<group>.*)\/(?<project>.*)(?:\r?\n|\.git)/);
assert(gitRemoteMatch?.groups != null, "git config didn't provide valid matches");
assert(gitRemoteMatch.groups.domain != null, "<domain> not found in git config");
assert(gitRemoteMatch.groups.group != null, "<group> not found in git config");
Expand Down

0 comments on commit c91411e

Please sign in to comment.