You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Express.js uses a legacy version with legacy behaviour such as this, there's not anything that can be done, I don't think, other than updating Express.js.
Ah, even on the new version the regexp doesn't match properly because of the way you're doing an optional group. I'm going to reopen to support that on the stable branch, however I still don't believe there's anything that can be done on 0.1. For reference, this is the RegExp on 1.x:
@clshortfuse I suggest using a RegExp with you're on the current version of Express. I'm playing around with a patch for the current version of path-to-regexp.
I'm using express which uses path-to-regexp for URL routing.
If I use the following regex:
I get the following error:
Using escaped forward slash still gives an Invalid group error
Breaking it down to just
gives
My current workaround is to do the following:
The text was updated successfully, but these errors were encountered: