Closed
Description
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
passestype(scope1, scope2, scope3): msg
fails
Affected packages
- cli
- core
- prompt
- config-angular
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/cli@17.4.4
git --version
v2.38.1
node --version
v18.12.1