Skip to content

fix: pascal function incorrectly handles camelCase input#477

Open
MD-Mushfiqur123 wants to merge 4 commits into
sodiray:masterfrom
MD-Mushfiqur123:master
Open

fix: pascal function incorrectly handles camelCase input#477
MD-Mushfiqur123 wants to merge 4 commits into
sodiray:masterfrom
MD-Mushfiqur123:master

Conversation

@MD-Mushfiqur123

Copy link
Copy Markdown

The pascal() function fails to correctly handle camelCase strings. For example, pascal("fooBar") returns "Foobar" instead of "FooBar".

Updated the split regex to also split on camelCase boundaries, matching the approach used by the title() function.

Closes #292

@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the rayunishinedev's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Pascal function fails to handle camel case strings correctly

1 participant