Skip to content

Split by case should take , and space into account #92

@memochou1993

Description

@memochou1993

Environment

  • scule: 1.3.0
  • Node: v20.13.0

Reproduction

titleCase('hello, world!')
// actual: Hello, world!
// expected: Hello, World!

titleCase('is_technical')
// actual: is Technical
// expected: Is Technical

Describe the bug

According to the documentation, titleCase is supposed to capitalize all words.

Even function words like "is," if they appear as the first word, should be capitalized.

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