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

issue 611: added the method Kebaberize #617

Merged
merged 2 commits into from
Apr 18, 2017
Merged

issue 611: added the method Kebaberize #617

merged 2 commits into from
Apr 18, 2017

Conversation

klaus78
Copy link

@klaus78 klaus78 commented Feb 7, 2017

#611: added Kebaberize method

#618: fixed

@@ -94,7 +94,7 @@ public static string Underscore(this string input)
{
return Regex.Replace(
Regex.Replace(
Regex.Replace(input, @"([A-Z]+)([A-Z][a-z])", "$1_$2"), @"([a-z\d])([A-Z])", "$1_$2"), @"[-\s]", "_").ToLower();
Regex.Replace(input, @"([\p{Lu}]+)([\p{Lu}][\p{Ll}])", "$1_$2"), @"([\p{Ll}\d])([\p{Lu}])", "$1_$2"), @"[-\s]", "_" ).ToLower(); // end first
Copy link
Contributor

Choose a reason for hiding this comment

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

you have a trailing space after "_" at the end.

@klaus78
Copy link
Author

klaus78 commented Feb 7, 2017

you are right. I have just fixed it, thanks

@klaus78 klaus78 closed this Feb 17, 2017
@klaus78 klaus78 reopened this Feb 20, 2017
@clairernovotny clairernovotny merged commit d3bb686 into Humanizr:dev Apr 18, 2017
@clairernovotny clairernovotny modified the milestone: v2.2 Apr 18, 2017
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.

3 participants