Skip to content

Commit

Permalink
Fix: Fixing the commit tag regex, we don't want 'Add sth' but only 'A…
Browse files Browse the repository at this point in the history
…dd: sth' in the Changelog
  • Loading branch information
y0urself committed Oct 5, 2021
1 parent c8582db commit 3f4fa00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pontos/changelog/conventional_commits.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 3f4fa00

Please sign in to comment.