Skip to content
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

Fix support for optional static segments #11813

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

LadyTsukiko
Copy link

Added support and tests for optional static segments in matchPath. According to the docs they should be supported but were not.

Before the fix the pattern "/user/admin?" would match "/user/admi" and "/user/admin" but not "/user".

Copy link

changeset-bot bot commented Jul 17, 2024

🦋 Changeset detected

Latest commit: 2a801a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
react-router Patch
@react-router/architect Patch
@react-router/cloudflare Patch
@react-router/dev Patch
react-router-dom Patch
@react-router/express Patch
@react-router/node Patch
@react-router/serve Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Jul 17, 2024

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

@LadyTsukiko LadyTsukiko marked this pull request as draft July 17, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant