^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(\w+((,|\/|\\)?\s?\w+)+\))?!?: [\S ]{1,49}[^\.]$
This regex enforces the rules for the header line of the conventional commit specification.
- Supports the standard types
- Supports the breaking changes exclamation mark notation