Skip to content

fix: sanitize GitHub username inputs - #255

Open
abhinavrastogi2627 wants to merge 1 commit into
O2sa:mainfrom
abhinavrastogi2627:fix/sanitize-github-usernames
Open

abhinavrastogi2627 wants to merge 1 commit into
O2sa:mainfrom
abhinavrastogi2627:fix/sanitize-github-usernames

Conversation

@abhinavrastogi2627

Copy link
Copy Markdown
Contributor

Fixes #254

Sanitizes leading @ characters, GitHub profile URLs, surrounding whitespace, and trailing slashes before comparison and profile requests reach GitHub.

Coverage includes the shared helper, comparison form, comparison API, and profile API.

Validation performed:

  • ./node_modules/.bin/vitest run — 29 files, 237 tests passed
  • ./node_modules/.bin/tsc --noEmit — passed
  • ./node_modules/.bin/eslint . — no errors; one existing no-img-element warning in leaderboard-table.test.tsx
  • ./node_modules/.bin/prettier --check . — passed
  • git diff --check — passed

The issue is open and unblocked at submission.

@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

@abhinavrastogi2627 is attempting to deploy a commit to the osama's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thank you for the pull request! ✅

A maintainer will review this soon. Please be patient while we take a look. 🙌

This branch has not been deployed

No deployments
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.

enhancement: Sanitize developer usernames by stripping leading '@' and GitHub URLs

1 participant