Skip to content

Commit

Permalink
fix: Fix undefined get commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 7, 2021
1 parent e74b8ea commit 08614f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function formatStringCommit(commit = '', repoName = '', { regExp, shortHash, fil
author = '';
}
if (regExp && (new RegExp(regExp).test(commit))) {
return;
return '';
}
if (getRegExp('type', commit)) {
commit = `🆎 ${commit}`;
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function formatStringCommit(commit = '', repoName = '', { regExp, shortHash, fil
author = '';
}
if (regExp && (new RegExp(regExp).test(commit))) {
return;
return '';
}
if (getRegExp('type', commit)) {
commit = `🆎 ${commit}`;
Expand Down

0 comments on commit 08614f5

Please sign in to comment.