blakeembrey / change-case

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

First word after colon not capitalized #323

Closed mohd-akram closed 7 months ago

mohd-akram commented 7 months ago
titleCase("cowboy bebop: the movie")

Expected:

Cowboy Bebop: The Movie

Actual:

Cowboy Bebop: the Movie

Source

blakeembrey commented 7 months ago

Fixed with 4.2.0. It ended up being a bit messier and more complex than I expected because I didn't currently have any sort of "end of sentence" handling, which I assume is also a bug (i.e. cowboy bebop. the movie. should presumably do the same thing).

mohd-akram commented 6 months ago

Thanks for the prompt fix! Tested it and it works well. Great that the general case is now handled as well.