mirror of
https://github.com/orhun/git-cliff.git
synced 2024-10-26 07:49:41 +03:00
fix(commit): trim the text before matching with commit parser (#573)
This commit is contained in:
parent
9eb3d65945
commit
4971b236ac
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user