fix(analyzer/angular): fix regex to regonize merge commits

This commit is contained in:
Nightapes
2019-08-25 14:16:57 +02:00
parent 2c26c8aa6d
commit 829f2925ab
2 changed files with 6 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ const ANGULAR = "angular"
func newAngular() *angular { func newAngular() *angular {
return &angular{ return &angular{
regex: `(TAG)(?:\((.*)\))?: (.*)`, regex: `^(TAG)(?:\((.*)\))?: (.*)$`,
log: log.WithField("analyzer", ANGULAR), log: log.WithField("analyzer", ANGULAR),
rules: []Rule{ rules: []Rule{
{ {

View File

@@ -107,6 +107,11 @@ func TestAngular(t *testing.T) {
Author: "me", Author: "me",
Hash: "12345667", Hash: "12345667",
}, },
shared.Commit{
Message: "Merge feat(internal/changelog): my first commit",
Author: "me",
Hash: "12345667",
},
}, },
}, },
{ {