scule icon indicating copy to clipboard operation
scule copied to clipboard

[titleCase] First word is not in Upper-first casing if it's an article or conjuction

Open Eazash opened this issue 10 months ago • 0 comments

Environment

Reproduction

titleCase('in world')
// actual: in World
// expected: In World

titleCase('and then')
// actual: and Then
// expected: And Then

Describe the bug

For any of the words that are 'title case exceptions', they are not transformed to Upper-First if they're coming first in a string

Additional context

No response

Logs

No response

Eazash avatar Jan 15 '25 09:01 Eazash