Skip to content

fix: Allow bracket characters in repo path validation - #1238

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/repo-path-validation-brackets
Open

fix: Allow bracket characters in repo path validation#1238
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/repo-path-validation-brackets

Conversation

@sentry

@sentry sentry Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

This PR updates the REPO_PATH_SEGMENT_PATTERN regex in src/utils/repo-path.ts to include [, ], (, and ) characters.

TanStack Router uses these characters for file-based routing conventions, such as escaping literal dots ([.]) and defining route groups ((group)). Previously, the path validation would reject legitimate example file paths containing these characters, leading to an "Error: [" issue when trying to load such examples.

This change ensures that valid router-convention paths are correctly processed. It does not introduce any security vulnerabilities as existing checks for path traversal (e.g., .., //, leading/trailing /) remain in place.

Fixes TANSTACK-COM-4ZF

This PR was automatically generated by Sentry. You can adjust this setting at any time.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 9, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com 7add39f Commit Preview URL

Branch Preview URL
Sep 09 2026, 11:04 AM

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.

0 participants