diff --git a/internal/commit/parser/parser.go b/internal/commit/parser/parser.go index 62a411a6..526b9f87 100644 --- a/internal/commit/parser/parser.go +++ b/internal/commit/parser/parser.go @@ -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+)\.?$`) )