Skip to content

Capitalize supplementary-plane word initials - #373

Open
xiehuanyi wants to merge 1 commit into
blakeembrey:mainfrom
xiehuanyi:fix/unicode-word-initials
Open

xiehuanyi wants to merge 1 commit into
blakeembrey:mainfrom
xiehuanyi:fix/unicode-word-initials

Conversation

@xiehuanyi

Copy link
Copy Markdown

Case transforms read word[0], so letters outside the BMP are split into surrogate halves. For example, capitalCase("𐐨foo") leaves the initial Deseret letter lowercase while constantCase can uppercase the same letter.

Read the first complete code point before uppercasing and slicing the remainder. Cover capital, sentence, Pascal, camel, and train case with the default locale handling and locale: false, including the Pascal merge option.

Validation: the new regression fails before the change. npm test --workspaces passes all 141 tests across four workspaces, including TypeScript builds, formatting checks, and coverage. git diff --check passes.

AI disclosure: OpenAI Codex assisted with investigation, implementation, and validation.

Copilot AI balanced review requested due to automatic review settings October 11, 2026 07:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants