blakeembrey / change-case

Convert strings between camelCase, PascalCase, Capital Case, snake_case and more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First word after colon not capitalized

mohd-akram opened this issue · comments

titleCase("cowboy bebop: the movie")

Expected:

Cowboy Bebop: The Movie

Actual:

Cowboy Bebop: the Movie

Source

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).

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