Skip to content

Commit

Permalink
fix(commit): trim the text before matching with commit parser (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun authored Mar 24, 2024
1 parent 9eb3d65 commit 4971b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-cliff-core/src/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4971b23

Please sign in to comment.