Skip to content

Commit

Permalink
fix(analyzer): fix commit message body parser
Browse files Browse the repository at this point in the history
In special cases the body of a commit was not correctly interpreted and the changelog was displayed wrongly.
  • Loading branch information
Nightapes authored and fwiedmann committed Apr 11, 2022
1 parent bcb21d9 commit 03f2eea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ import (
)

const breakingChangeKeywords = "BREAKING CHANGE"
const defaultBreakingChangePrefix = breakingChangeKeywords + ":"
const footerTokenRegex = "^(?P<token>[^\\s][\\w\\- ]+[^\\s])<SEP>.*"
var defaultTokenSeparators = [2]string{ ": ", " #"}
const defaultBreakingChangePrefix = breakingChangeKeywords + ":"
const footerTokenRegex = "^(?P<token>[^\\s*-][\\w\\- ]+[^\\s])<SEP>.*"

var defaultTokenSeparators = [2]string{": ", " #"}

// Analyzer struct
type Analyzer struct {
Expand Down

0 comments on commit 03f2eea

Please sign in to comment.