Skip to content

Commit 1659955

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const scopeEnum: SyncRule<string[]> = (
1313

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

1919
const negated = when === 'never';

0 commit comments

Comments
 (0)