benoitvallon / titlecase-french

"Capital and Lowercase Letters in French Title" using capital letters for the principal words
MIT License
14 stars 3 forks source link

Support unicode apostrophe (’) as well as single quote (') #3

Open AndrewLeedham opened 2 years ago

AndrewLeedham commented 2 years ago

Hi great library.

I noticed that a lot of the logic relies on single quotes (') would be nice if it accounted for unicode apostrophes (’) as well.

For example when using the Intl.DisplayNames API Ivory Coast comes out as côte d’ivoire which when running through this library capitalises as Côte D’ivoire where with a single quote it does Côte d'Ivoire. I was expecting both to come out the same.