case-extensions
case-extensions copied to clipboard
FEATURE: Support SNAKE_CAPS and KEBAB-CAPS
This is a great utility that I've been using, but I occasionally run into ALL_CAPS text that I'd like to change case to another format as well. Technically, I can get it working by calling .ToLower() on the text first, but it would be nice to have true bi-directional support for this.
The same happened to me just now:
"CONFIRMED".ToPascalCase() == "CONFIRMED" // Not desired
"CONFIRMED".ToLowerInvariant().ToPascalCase() == "Confirmed" // What I think should be the output
Thanks!
Also
"HELLO".ToKebabCase() == "h-e-l-l-o"