From 086a8046351464550c6ecde8f507132949227f96 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 1 Oct 2024 13:06:13 -0700 Subject: [PATCH] try optional windows newlines --- src/commit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commit.ts b/src/commit.ts index 0fdf83939..904b24c0f 100644 --- a/src/commit.ts +++ b/src/commit.ts @@ -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)];