Skip to content

fix(docs): Allow bracket notation in repo paths - #1288

Merged
tannerlinsley merged 1 commit into
mainfrom
seer/fix/docs-path-validation
Sep 21, 2026
Merged

tannerlinsley merged 1 commit into
mainfrom
seer/fix/docs-path-validation

Conversation

@sentry

@sentry sentry Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

This PR addresses issue TANSTACK-COM-51A by updating the REPO_PATH_SEGMENT_PATTERN regex in src/utils/repo-path.ts.

Previously, the regex did not include [ and ], causing validation errors when users navigated to example files that utilize Svelte file-system routing conventions (e.g., src/routes/[postId]/+page.ts). This resulted in an "Error: [" being thrown.

The fix modifies the regex to ^[a-zA-Z0-9._$+\[\]-]+$ to correctly allow these characters. A corresponding test case has also been added to tests/repo-path.test.ts to ensure paths with bracket notation are now considered valid.

Fixes TANSTACK-COM-51A

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

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

@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 5e69cd1d-d86b-42cf-9682-82cbdf72e0be

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tannerlinsley
tannerlinsley merged commit a9c6ee7 into main Sep 21, 2026
7 checks passed
@tannerlinsley
tannerlinsley deleted the seer/fix/docs-path-validation branch September 21, 2026 23:21
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.

1 participant