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
Copy file name to clipboardexpand all lines: Readme.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -119,12 +119,13 @@ re.exec('/test/route');
119
119
120
120
## Compatibility with Express <= 4.x
121
121
122
-
Path-To-RegExp breaks compatibility with Express 3.x in a few ways:
122
+
Path-To-RegExp breaks compatibility with Express <= 4.x in a few ways:
123
123
124
124
* RegExp special characters can now be used in the regular path. E.g. `/user[(\\d+)]`
125
125
* All RegExp special characters can now be used inside the custom match. E.g. `/:user(.*)`
126
126
* No more support for asterisk matching - use an explicit parameter instead. E.g. `/(.*)`
127
127
* Parameters can have suffixes that augment meaning - `*`, `+` and `?`. E.g. `/:user*`
128
+
* Strings aren't interpreted as literal regexp strings - no more non-capturing groups, lookaheads, lookbehinds or nested matching groups (but you can still pass a regexp manually)
0 commit comments