-
Notifications
You must be signed in to change notification settings - Fork 1.9k
pattern aliases #598
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
pattern aliases #598
Conversation
|
I like the idea - although you should check beforehand to save wasted effort 😉 Can you also:
mux has a lot of features and it helps to document new ones well. |
done👍 |
|
@elithrar , are there any other changes needed? |
|
This issue has been automatically marked as stale because it hasn't seen a recent update. It'll be automatically closed in a few days. |
|
it would be nice to get this in |
|
This issue has been automatically marked as stale because it hasn't seen a recent update. It'll be automatically closed in a few days. |
|
Can anyone take a look? I noticed that the project came to life |
I will be reviewing this PR in sometime. If I missed it due to any reason. Request you to ping me. |
This feature introduces ability to register aliases for some often used regular expressions.
For example path as this:
/{category:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}}/{product:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}}can be transformed into this
/{category:uuid}/{product:uuid}You need just use register it
RegisterPatternonRoutestructRegisterPatternonRouterstruct