Skip to content
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

Create addRestoreCaseException function #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

umairda
Copy link

@umairda umairda commented Mar 14, 2020

I use the pluralize library frequently and wanted to be able to pluralize promo ID => promo IDs

I can add a plural rule but the restoreCase function restores the case so that the result is promo IDS

I created a function addRestoreCaseException which takes a token argument and pushes it to an array of restoreCaseExceptions

If a token is found in the array of restoreCaseExceptions then the token's case is not restored.

I also added a test and updated the readme.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 184e7d0 on umairda:master into abb3991 on blakeembrey:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants