We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Make it possible to enforce a format for a dynamic segment of the route, so we can write:
get("/products/:id", where("id", "[A-Z]{2}-\d{2}")).to(...)
This route would match paths such as /products/AB-123, but not /products/123456.
/products/AB-123
/products/123456
Anchors will not be supported in the RegExp since we want to match the entire segment.
The text was updated successfully, but these errors were encountered:
RegExp matching would be the default, although other matching styles would be possible by passing a matcher rather than a string.
Sorry, something went wrong.
No branches or pull requests
Make it possible to enforce a format for a dynamic segment of the route, so we can write:
This route would match paths such as
/products/AB-123
, but not/products/123456
.Anchors will not be supported in the RegExp since we want to match the entire segment.
The text was updated successfully, but these errors were encountered: