We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4ebc8 commit c247670Copy full SHA for c247670
commitizen/cz/conventional_commits/conventional_commits.py
@@ -191,8 +191,11 @@ def schema(self) -> str:
191
192
def schema_pattern(self) -> str:
193
PATTERN = (
194
- r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)"
195
- r"(\(\S+\))?!?:(\s.*)"
+ r"(?s)" # To explictly make . match new line
+ r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)" # type
196
+ r"(\(\S+\))?!?:" # scope
197
+ r"( [^\n\r]+)" # subject
198
+ r"((\n\n.*)|(\s*))?$"
199
)
200
return PATTERN
201
0 commit comments