We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18fbed7 commit 1659955Copy full SHA for 1659955
@commitlint/rules/src/scope-enum.ts
@@ -13,7 +13,7 @@ export const scopeEnum: SyncRule<string[]> = (
13
14
// Scopes may contain slash or comma delimiters to separate them and mark them as individual segments.
15
// This means that each of these segments should be tested separately with `ensure`.
16
- const delimiters = /\/|\\|,/g;
+ const delimiters = /\/|\\|, ?/g;
17
const scopeSegments = parsed.scope.split(delimiters);
18
19
const negated = when === 'never';
0 commit comments