blakeembrey / change-case

Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
MIT License
2.22k stars 92 forks source link

brackets are removed from tite #292

Closed Morriz closed 10 months ago

Morriz commented 1 year ago

Hi, I was wondering why this lib removes chars from the string like (|)|[|]. I think this lib is being overly opinionated and it should be configurable. By default it should only concern itself about casing imo.

blakeembrey commented 10 months ago

I'm going to close this as won't fix but I'm open to fixing it if I can understand the expected use case and behavior. Why are you passing things that can't be cased? What would you want the result to be of camelCase("foo(bar)")? Arguably it is fooBar...