Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /