Skip to main content

build_commit_pattern

Function build_commit_pattern 

Source
pub fn build_commit_pattern(type_names: &[&str]) -> String
Expand description

Build the conventional commit regex from configured type names.

Produces: ^(?P<type>feat|fix|...)(?:\((?P<scope>[^)]+)\))?(?P<breaking>!)?:\s+(?P<description>.+)