-
-
Notifications
You must be signed in to change notification settings - Fork 0
Updated toPascalCase() to better handle uppercase words
#211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the toPascalCase() function to properly preserve uppercase words (like "DLQ" or "UPPERCASE") when converting strings to PascalCase format. The implementation optimizes type checking by replacing a custom getType() call with a native typeof operator, and updates project dependencies including pnpm, TypeScript, and various development tools.
- Added regex pattern to detect and preserve consecutive uppercase letters
- Replaced custom type check with native
typeofoperator - Updated development dependencies to latest versions
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| test/toPascalCase.test.ts | Added test cases to verify uppercase word handling (DLQ, UPPERCASE words, mixed alphanumeric) |
| src/toPascalCase.ts | Updated regex pattern to capture uppercase sequences and simplified type checking logic |
| package.json | Updated pnpm package manager and multiple dev dependencies to newer versions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🎉 This PR is included in version 0.74.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
toPascalCase()to better handle uppercase wordspnpmversion