Case icon indicating copy to clipboard operation
Case copied to clipboard

`Case.of(Case.pascal(string)) === "capital"`

Open manuelottlik opened this issue 2 years ago • 0 comments

I just stumbled upon this issue:

If I have a string like "Room", Case.of() returns capital. If I turn it into a pascal string (which it already is) and then get the case of that Case.of(Case.pascal('Room'), it still returns capital.

I think there is some kind of configuration needed on how to handle single word strings, because those are ambiguous. I could propose a PR if you like.

manuelottlik avatar Jul 03 '23 08:07 manuelottlik