Skip to content

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

@Eazash

Description

@Eazash

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions