scule icon indicating copy to clipboard operation
scule copied to clipboard

Split by case should take `,` and space into account

Open memochou1993 opened this issue 5 months ago • 0 comments

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 small words like "is," if they appear as the first word, should be capitalized.

Additional context

No response

Logs

No response

memochou1993 avatar Sep 22 '24 14:09 memochou1993