Tazinho / snakecase

🐍🐍🐍 A systematic approach to parse strings and automate the conversion to snake_case, UpperCamelCase or any other case.
https://tazinho.github.io/snakecase/
GNU General Public License v3.0
147 stars 9 forks source link

Make `abbreviations` argument work with case = `"none"` #183

Open Tazinho opened 5 years ago

Tazinho commented 5 years ago

I.e. this should return "catcatdog"

> x <- "CatCATdog"
> to_any_case(x, abbreviations = c("Cat" = "cat"))
[1] "cat_cat_dog"
> to_any_case(x, abbreviations = c("Cat" = "cat"), case = "none")
[1] "CatCATdog"