@@ -17,6 +17,24 @@ func TestParseHeaderValid(t *testing.T) {
1717 "feat: description with body 1, \n \n 2, 3 and 4?" ,
1818 "feat1234(@scope/scope1,scope2): description, \n \n body 1 2, 3 and 4?" ,
1919 "1245#feat1234(@scope/scope1,scope2): description, \n \n body 1 2, 3 and 4?" ,
20+ "feat: description with colon at the end: mid:dle and :start of words" ,
21+ "feat: description with gitmoji at the end :hammer:" ,
22+ "feat: description with gitmoji in :hammer: the middle" ,
23+ "feat: :hammer: description with gitmoji at the start" ,
24+ "feat(scope): description with colon at the end: mid:dle and :start of words" ,
25+ "feat(scope): description with gitmoji at the end :hammer:" ,
26+ "feat(scope): description with gitmoji in :hammer: the middle" ,
27+ "feat(scope): :hammer: description with gitmoji at the start" ,
28+ "feat!: description with colon at the end: mid:dle and :start of words" ,
29+ "feat!: description with gitmoji at the end :hammer:" ,
30+ "feat!: description with gitmoji in :hammer: the middle" ,
31+ "feat!: :hammer: description with gitmoji at the start" ,
32+ "feat(scope)!: description with colon at the end: mid:dle and :start of words" ,
33+ "feat(scope)!: description with gitmoji at the end :hammer:" ,
34+ "feat(scope)!: description with gitmoji in :hammer: the middle" ,
35+ "feat(scope)!: :hammer: description with gitmoji at the start" ,
36+ `feat: : : A description` ,
37+ `feat: :: A description ::` ,
2038 }
2139
2240 p := New ()
@@ -52,6 +70,8 @@ func TestParseHeaderInvalid(t *testing.T) {
5270 `feat((` ,
5371 `feat():` ,
5472 `feat):` ,
73+ `feat:: A description` ,
74+ `feat:::: A description` ,
5575 }
5676
5777 p := New ()
0 commit comments