From 4971b236ace1d6a8af96f4527256ceeb8c8c4551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sun, 24 Mar 2024 17:30:06 +0300 Subject: [PATCH] fix(commit): trim the text before matching with commit parser (#573) --- git-cliff-core/src/commit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-cliff-core/src/commit.rs b/git-cliff-core/src/commit.rs index fbb3ba1b9c..efacf6425e 100644 --- a/git-cliff-core/src/commit.rs +++ b/git-cliff-core/src/commit.rs @@ -309,7 +309,7 @@ impl Commit<'_> { } } for (regex, text) in regex_checks { - if regex.is_match(&text) { + if regex.is_match(text.trim()) { if self.skip_commit(parser, protect_breaking) { return Err(AppError::GroupError(String::from( "Skipping commit",