change-case icon indicating copy to clipboard operation
change-case copied to clipboard

title-case: a quoted word with a period in it doesn't get capitalized

Open teddybradford opened this issue 3 years ago • 0 comments

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.

teddybradford avatar Sep 20 '21 06:09 teddybradford