Skip to content

Commit c91411e

Browse files
committed
Remove unnecessary
1 parent 6b092cc commit c91411e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class Parser {
8888
} else {
8989
throw new ExitError("Could not locate.gitconfig or .git/config file");
9090
}
91-
const gitRemoteMatch = gitConfig.match(/url = .*(?:https:\/\/|@)(?<domain>.*?)[:|\/](?<group>.*)\/(?<project>.*)(?:\r?\n|\.git)/);
91+
const gitRemoteMatch = gitConfig.match(/url = .*(?:https:\/\/|@)(?<domain>.*?)[:|/](?<group>.*)\/(?<project>.*)(?:\r?\n|\.git)/);
9292
assert(gitRemoteMatch?.groups != null, "git config didn't provide valid matches");
9393
assert(gitRemoteMatch.groups.domain != null, "<domain> not found in git config");
9494
assert(gitRemoteMatch.groups.group != null, "<group> not found in git config");

0 commit comments

Comments
 (0)