ramsey / conventional-commits

:yo_yo: A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook plugin!
MIT License
182 stars 21 forks source link

Feature request: scopeCase option that will compare to scopes with case sensitivity #28

Open iliubinskii opened 2 years ago

iliubinskii commented 2 years ago

My feature title

"case-sensitive-match" option for scopeCase.

Background/problem

When I provide "scopes" array I prefer scope to be checked case sensitively.

I could use "kebab" scopeCase, but I want to use scopes with dots in some cases.

Proposal/solution

"case-sensitive-match" option for scopeCase.

Alternatives

Allow "scopeCase" to accept array, e.g.:

{
  "scopeCase": ["dot", "kebab"]
}

Additional context

-