danielstjules / Stringy

A PHP string manipulation library with multibyte support
MIT License
2.46k stars 216 forks source link

Camelize doesn't work properly #184

Closed simPod closed 6 years ago

simPod commented 6 years ago

When using camelize on strings like XY_Z, it produces xYZ but I believe it should instead do xyZ

Or am I mistaken? Thanks!

noraheuer commented 6 years ago

you are mistaken ... it does not change existing caps (except the first one) .... think about it .... your xyZ would be turned into xyz on the second run if you had it your way.

simPod commented 6 years ago

You're right, thanks!