Skip to content

Commit 3ecf22a

Browse files
authored
fix: [scope-case] allow space after comma as scope delimiter
fixes conventional-changelog#3576
1 parent 18fbed7 commit 3ecf22a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

@commitlint/rules/src/scope-case.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const scopeCase: SyncRule<TargetCaseType | TargetCaseType[]> = (
2727

2828
// Scopes may contain slash or comma delimiters to separate them and mark them as individual segments.
2929
// This means that each of these segments should be tested separately with `ensure`.
30-
const delimiters = /\/|\\|,/g;
30+
const delimiters = /\/|\\|, ?/g;
3131
const scopeSegments = scope.split(delimiters);
3232

3333
const result = checks.some((check) => {

0 commit comments

Comments
 (0)