Skip to content

Commit 4a4471a

Browse files
committed
refactor: only parse footer types at the beginning of the line
1 parent 35a30c2 commit 4a4471a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/com/github/lppedd/cc/parser/strictConventionalCommit.flex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ NL = \r\n | \r | \n
5959
WS = [^\S\r\n]
6060

6161
// We allow footer types with spaces inside
62-
FooterType = [^:\r\n]+
62+
FooterType = [^\s:][^:\r\n]*
6363

6464
%state TYPE
6565
%state SCOPE

0 commit comments

Comments
 (0)