When a string has a WordSeparators
character (e.g. '-'
, '_'
or ' '
) followed by an uppercase character, the resulting KebabCase
& SnakeCase
(and probably all DelimiterCase
) type adds additional/duplicate delimiters, rather than a single delimiter
e.g:
const a: KebabCase<"Test string"> = "test-string" // Works, no TS error
const b: KebabCase<"Test String"> = "test-string" // Error, TS expects 'test--string'
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too