Skip to content

Commit a8914d3

Browse files
committed
fix: support ':' character in scope names
Change the regex for parsing commit headers so that colons in scope names don't break parsing. Commit headers like "feat(foo::bar): change" are no longer excluded from the generated changelist.
1 parent a1da2a5 commit a8914d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl Clog {
156156
out_format: ChangelogFormat::Markdown,
157157
git_dir: None,
158158
git_work_tree: None,
159-
regex: regex!(r"^([^:\(]+?)(?:\(([^:\)]*?)?\))?:(.*)"),
159+
regex: regex!(r"^([^:\(]+?)(?:\(([^\)]*?)?\))?:(.*)"),
160160
closes_regex: regex!(r"(?:Closes|Fixes|Resolves)\s((?:#(\d+)(?:,\s)?)+)"),
161161
breaks_regex: regex!(r"(?:Breaks|Broke)\s((?:#(\d+)(?:,\s)?)+)"),
162162
breaking_regex: regex!(r"(?i:breaking)")

0 commit comments

Comments
 (0)