-
Notifications
You must be signed in to change notification settings - Fork 10
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
Wrong boundary detected when converting from camel case #12
Comments
Hello there, This is not a bug, and is intended behavior. Recall that
We can also look at all the possible boundaries that can be identified in a provided string. Let's look at what is in your example strings.
This lowerupper boundary is expected for camel case, since that's how we join words. The end of one word is lowercase and the next begins with uppercase. In the case of All that is to say this is expected behavior. |
Thanks for the answer, Cheers |
Hi there,
I really like you crate. However I came across a small issue. If the second char is uppercase in a camel case string, there should not be boundary inserted.
Here are two test cases:
failes with "foo_bar" != "f_oo_bar"
succeeds
It's probably a quite niche bug and also easy to work around by just making the first letter always uppercase and then converting from pascal case instead.
The text was updated successfully, but these errors were encountered: