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

String extension case functions behaving unexpectedly for "vitaminB3" #31

Open
bradwbradw opened this issue Aug 13, 2018 · 0 comments
Open

Comments

@bradwbradw
Copy link

let nutrient = "vitaminB3"
print(nutrient.startCase)

// prints "Vitamin 3", but I expected "Vitamin B3"

A similar thing happens for snakeCase. I've gone and inspected Cent's internal .words() function, and it seems to be the culprit, since the array would be ["vitamin", "3"] instead of ["vitamin", "B3"]

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

No branches or pull requests

1 participant