Skip to content

Commit

Permalink
feat(conventionalcommits): make group matching regexp cover CC style
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Nov 29, 2024
1 parent fce4380 commit 3b07526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import process from 'process'
import { readFileSync } from 'fs'
import { cleanSummary as cleanRevertsSummary } from './reverts.js'

const groupRe = /^((:?\w|-|,|, )+):\s*/i
const groupRe = /^((:?\w|-|,|, )+(\([\w.-,]+\))?)!?:\s*/i

export function toGroups (summary) {
summary = cleanRevertsSummary(summary)
Expand Down

0 comments on commit 3b07526

Please sign in to comment.