whatisinternet / Inflector

A rust inflection library
https://docs.rs/Inflector
BSD 2-Clause "Simplified" License
124 stars 28 forks source link

Consider implementing an ugly case conversion #77

Open dmerejkowsky opened 4 years ago

dmerejkowsky commented 4 years ago

Currently I workaround it by writing something like:

let input = "foo_bar";
let ugly = input.to_train_case().replace("-", "_");
assert_eq!(ugly, "Foo_Bar");