diff --git a/@commitlint/rules/src/scope-case.ts b/@commitlint/rules/src/scope-case.ts index 9bac0d3db2..7544cc1fa0 100644 --- a/@commitlint/rules/src/scope-case.ts +++ b/@commitlint/rules/src/scope-case.ts @@ -27,7 +27,7 @@ export const scopeCase: SyncRule = ( // 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) => {