Skip to content

Commit

Permalink
try optional windows newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Oct 1, 2024
1 parent ec5dce1 commit 086a804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ function splitMessages(message: string): string[] {

const conventionalCommits = messages[0]
.split(
/\n\n(?=(?:feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.*?\))?: )/
/\r?\n\r?\n(?=(?:feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.*?\))?: )/
)
.filter(Boolean);
return [...conventionalCommits, ...messages.slice(1)];
Expand Down

0 comments on commit 086a804

Please sign in to comment.