Skip to content

Commit

Permalink
fix(changelog): commit types aren't being parsed correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Ar Rakin <[email protected]>
  • Loading branch information
virtual-designer authored Oct 3, 2024
1 parent 67c52e4 commit c58cf23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ChangeLogGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class ChangeLogGenerator implements AsyncDisposable {
newLinePosition === -1
? commit.message
: commit.message.slice(0, newLinePosition);
const typeWithSubject = head.match(
/([A-Za-z0-9-_]+(\(.+?\))?)\!?:/,
const typeWithSubject = head.trim().match(
/^([A-Za-z0-9-_]+(\(.+?\))?)\!?:/,
);

if (!typeWithSubject) {
Expand Down

0 comments on commit c58cf23

Please sign in to comment.