change-case
change-case copied to clipboard
title-case: a quoted word with a period in it doesn't get capitalized
I think I found a bug in title-case
: When a string has a quoted word with a period in it, that word isn't capitalized.
For example:
titleCase("Is human activity responsible for the climate emergency? New report calls it ‘unequivocal.’")
// Is Human Activity Responsible for the Climate Emergency? New Report Calls It ‘unequivocal.’
I would expect unequivocal
to be capitalized, but it is not.