Skip to content

Commit 17a5e26

Browse files
authored
fix: allow breaking change indicator wit dash separatir
1 parent b39b5a1 commit 17a5e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gitCommitConvention.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = function (convention, commitAnchor = 'HEAD') {
6969
Object.assign(conventionalCommit, conventionalSubject);
7070

7171
// parse breaking changes
72-
conventionalCommit.breakingChanges = commit.body ? commit.body.split(/^BREAKING CHANGES?: */im).splice(1) : [];
72+
conventionalCommit.breakingChanges = commit.body ? commit.body.split(/^BREAKING[ -]CHANGES?: */im).splice(1) : [];
7373
if (conventionalSubject.breaking && !conventionalCommit.breakingChanges.length) {
7474
conventionalCommit.breakingChanges = [conventionalSubject.description]
7575
}

0 commit comments

Comments
 (0)