Skip to content

Commit

Permalink
fix: [scope-case] allow space after comma as scope delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
miluoshi committed Apr 4, 2023
1 parent 18fbed7 commit 3ecf22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @commitlint/rules/src/scope-case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const scopeCase: SyncRule<TargetCaseType | TargetCaseType[]> = (

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

const result = checks.some((check) => {
Expand Down

0 comments on commit 3ecf22a

Please sign in to comment.