Skip to content

Adds a function to convert text to NameCase #94

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

Merged
merged 2 commits into from
Jul 2, 2020

Conversation

TildeWill
Copy link
Contributor

@TildeWill TildeWill commented Jul 1, 2020

We've been using Recase at Geometer and have needed to also name case things and thought it'd be good to share. We've based our work off a Ruby library called namecase. We tried to keep the regexes simple and as readable as regexes can be.

cc @matthewjsloane

@coveralls
Copy link

coveralls commented Jul 1, 2020

Coverage Status

Coverage increased (+2.0%) to 98.701% when pulling 5b6f63c on TildeWill:wr-ms/add-name-case into 2f5f42d on sobolevn:master.

- updates Recase.Replace.replace spec to show it also works with functions

Signed-off-by: Will Read <will@geometer.io>
@TildeWill TildeWill force-pushed the wr-ms/add-name-case branch from 2be3c29 to 8e2a369 Compare July 1, 2020 20:15
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, wow!
This looks very interesting!

P.S. Related, the similar thing but for Russian names: https://github.com/petrovich/petrovich_elixir

Signed-off-by: Will Read <will@geometer.io>
@sobolevn sobolevn merged commit b1feda3 into wemake-services:master Jul 2, 2020
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.

None yet

3 participants