iancoleman / strcase

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

`ToCamelCase` put underscore in between two numbers #35

Open paulvollmer opened 2 years ago

paulvollmer commented 2 years ago

What?

The current implementation of the ToCamelCase func does not put a delimiter between two numbers. For example test 123 456 get transformed to test123456 but in my opinion it should be transformed to test123_456

This PR add the missing underscore between numbers and add test cases to the unit tests.