1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-10-26 16:04:18 +03:00

fix(commit): trim the text before matching with commit parser (#573)

This commit is contained in:
Orhun Parmaksız 2024-03-24 17:30:06 +03:00 committed by GitHub
parent 9eb3d65945
commit 4971b236ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",