fix(analyzer): fix commit message body parser

In special cases the body of a commit was not correctly interpreted and the changelog was displayed wrongly.
This commit is contained in:
Sebastian Beisch
2022-04-11 15:54:12 +02:00
committed by Felix Wiedmann
parent bcb21d917d
commit 03f2eeadaa

View File

@@ -13,9 +13,10 @@ import (
) )
const breakingChangeKeywords = "BREAKING CHANGE" const breakingChangeKeywords = "BREAKING CHANGE"
const defaultBreakingChangePrefix = breakingChangeKeywords + ":" const defaultBreakingChangePrefix = breakingChangeKeywords + ":"
const footerTokenRegex = "^(?P<token>[^\\s][\\w\\- ]+[^\\s])<SEP>.*" const footerTokenRegex = "^(?P<token>[^\\s*-][\\w\\- ]+[^\\s])<SEP>.*"
var defaultTokenSeparators = [2]string{ ": ", " #"}
var defaultTokenSeparators = [2]string{": ", " #"}
// Analyzer struct // Analyzer struct
type Analyzer struct { type Analyzer struct {