Skip to content

Commit

Permalink
improve breaking change matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 3, 2021
1 parent 307a4ad commit 11d466f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/commit/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ type Message struct {

var (
headerrPattern = regexp.MustCompile(`^(?:fixup!\s*)?(\w*)(\(([\w\$\.\*/-]*)\))?\: (.*)$`)
footerPattern = regexp.MustCompile(`^BREAKING\sCHANGE:\s*(.*)$`)
closePattern = regexp.MustCompile(`^(?i)Closes\s(.+)$`)
revertHeaderPattern = regexp.MustCompile(`^(?i)revert\s(.*)$`)
footerPattern = regexp.MustCompile(`^BREAKING\s+CHANGES?:\s*(.*)$`)
closePattern = regexp.MustCompile(`^(?i)Closes\s+(.+)$`)
revertHeaderPattern = regexp.MustCompile(`^(?i)revert\s+(.*)$`)
revertBodyPattern = regexp.MustCompile(`^(?i)This\sreverts\scommit\s(\w+)\.?$`)
)

Expand Down

0 comments on commit 11d466f

Please sign in to comment.