-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix slash in scope #291 #529
fix slash in scope #291 #529
Conversation
@marionebl |
I like the tests-first approach! 👍 I've also dug a bit deeper into Lodash A solution that comes to mind is trying to split the branch name based on either one of the dashes ( |
I created the solution I explained earlier, wanted to see if it could work. And well, all tests are in the green. 😄 Replace in file
This expects either a |
Mind blown. You want to add that code? Added you as a collaborator on my fork. Or you branch out from this one. |
Haha, nice 😄 I've added the code! Is this something that we can use or do you know other solutions? |
Tried to narrow this down.
Description
Using this scope
Modules\Graph
with thepascal-case
rule fails.In
@commitlint/rules/src/scope-case.js
:const r = ensure.case(scope, check.case);
this returns false for such case.First I only try to add a test-case which would be suitable for this situation. If this is correct we could chech where a fix in
case.js
coudl be implemented.Currently thsi test fails: