Skip to content

Commit

Permalink
String.prototype.replaceAll 대신 정규식 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
shine1594 committed Aug 5, 2021
1 parent 3b53d34 commit 9dbf158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conventional-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const applyRecommendation = (app, latest_tag, recommendation) => {
const whatBumpFor = _.curry((app, commits) => {
const scope_filtered_commits = commits.filter(
({ scope }) =>
scope === null || scope.replaceAll(" ", "").split(",").includes(app)
scope === null || scope.replace(/ /gi, "").split(",").includes(app)
);
return whatBumpAngular(scope_filtered_commits);
});
Expand Down

0 comments on commit 9dbf158

Please sign in to comment.