Skip to content

Commit 881ad02

Browse files
committed
fix(cz/conventional_commits): optionally expect '!' right before ':' in schema_pattern
Closes: #381
1 parent 6082b64 commit 881ad02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commitizen/cz/conventional_commits/conventional_commits.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ def schema(self) -> str:
178178

179179
def schema_pattern(self) -> str:
180180
PATTERN = (
181-
r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)!?"
182-
r"(\(\S+\))?:(\s.*)"
181+
r"(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)"
182+
r"(\(\S+\))?!?:(\s.*)"
183183
)
184184
return PATTERN
185185

0 commit comments

Comments
 (0)