Skip to content

Commit 29d5373

Browse files
committed
Actually use a regex
1 parent 95ff733 commit 29d5373

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
@@ -47,7 +47,7 @@ export class Parser {
4747

4848
try {
4949
const res = await cpExec(`git config user.email`, {cwd: this.cwd});
50-
gitlabUser['GITLAB_USER_LOGIN'] = res.stdout.trimEnd().replace('/@.*/g', '');
50+
gitlabUser['GITLAB_USER_LOGIN'] = res.stdout.trimEnd().replace(/@.*/, '');
5151
gitlabUser['GITLAB_USER_EMAIL'] = res.stdout.trimEnd();
5252
} catch (e) {}
5353

0 commit comments

Comments
 (0)