You've already forked go-semantic-release
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:
committed by
Felix Wiedmann
parent
bcb21d917d
commit
03f2eeadaa
@@ -14,8 +14,9 @@ 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user