Expected Behavior
scope-enum and scope-case rules should also accept comma with space , as a delimiter in addition to /, \, ,
Current Behavior
type(scope1,scope2,scope3): msg passes
type(scope1, scope2, scope3): msg fails
Affected packages
Possible Solution
No response
Steps to Reproduce
1. enable rule `'scope-enum': [2, 'always', ['scope1', 'scope2']],`
2. run `echo "type(scope1, scope2, scope3): msg" | commitlint
Context
It's quite common for developers to separate multiple scopes with , instead of ,. It leads to frustration finding that commitlint failed just because of a space (which improves readability)
commitlint --version
@commitlint/[email protected]
git --version
v2.38.1
node --version
v18.12.1
Expected Behavior
scope-enumandscope-caserules should also accept comma with space,as a delimiter in addition to/,\,,Current Behavior
type(scope1,scope2,scope3): msgpassestype(scope1, scope2, scope3): msgfailsAffected packages
Possible Solution
No response
Steps to Reproduce
Context
It's quite common for developers to separate multiple scopes with
,instead of,. It leads to frustration finding thatcommitlintfailed just because of a space (which improves readability)commitlint --version
@commitlint/[email protected]
git --version
v2.38.1
node --version
v18.12.1