iancoleman / strcase

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

Latest changes break existing behavior #25

Closed odino closed 4 years ago

odino commented 4 years ago

Hola!

Just realized that a few recent updates broke existing behavior of the library. When calling ToLowerCamel:

earlier

"some string" # someString
" some string" # someString

now

"some string" # someString
" some string" # SomeString

The initial spaces make it so the first letter is not lowercase anymore.

iancoleman commented 4 years ago

Thanks for this!