iancoleman / strcase

A golang package for converting to snake_case or CamelCase
MIT License
1.01k stars 106 forks source link

ToLowerCamel producing incorrect value for some snake case strings #51

Open cbeti-ionos opened 7 months ago

cbeti-ionos commented 7 months ago

Hello,

It seems that certain snake case strings are not correctly converted to their camel case equivalents, a few examples:

"k8s_version" is converted to "k8SVersion", it should be "k8sVersion" "l10n_us" converted to "l10NUs" but it should be "l10nUs"

Letters that follow a string of digits seem to be capitalized for no reason.