Skip to content

fix : added PascalCase fallback for numeric-starting project names in projects.js - #1820

Closed
tmdeveloper007 wants to merge 1 commit into
steam-bell-92:mainfrom
tmdeveloper007:pr1815
Closed

fix : added PascalCase fallback for numeric-starting project names in projects.js#1820
tmdeveloper007 wants to merge 1 commit into
steam-bell-92:mainfrom
tmdeveloper007:pr1815

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Contributor

Summary of What Has Been Done

Updated the toPascalCase function in web-app/js/projects.js to handle project names that start with digits followed by a hyphen (e.g., "2048-game"). Previously, such names would incorrectly produce "2048-Game" instead of the required "2048Game", causing the project HTML getter to not be found.

File changed: web-app/js/projects.js

Changes Made

  • Removed the hardcoded if (str === "2048-game") return "2048Game"; special case
  • Added a generalized rule: when a word segment starts with a digit, do not uppercase its first character

Impact it Made

  • The 2048-game project now loads correctly when opened via URL parameter
  • All future numeric-starting project names are handled correctly without hardcoded special cases

Closes #1815

Note

Please assign this PR to the tmdeveloper007 account.

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

@tmdeveloper007 is attempting to deploy a commit to the Anuj'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.

fix : add PascalCase fallback for numeric-starting project names in projects.js toPascalCase

2 participants