scule
scule copied to clipboard
Split by case should take `,` and space into account
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