diff --git a/pontos/changelog/conventional_commits.py b/pontos/changelog/conventional_commits.py index 6871b915..61b26226 100644 --- a/pontos/changelog/conventional_commits.py +++ b/pontos/changelog/conventional_commits.py @@ -85,7 +85,9 @@ def sort_commits(self, commits: List[str]): for commit in commits: commit = commit.split(' ', maxsplit=1) for commit_type in commit_types: - reg = re.compile(f'{commit_type["message"]}\\W', flags=re.I) + reg = re.compile( + f'{commit_type["message"]}[\\W\\S]', flags=re.I + ) match = reg.match(commit[1]) if match: cleaned_msg = (