Skip to content

Commit c964d40

Browse files
committed
Update readme docs with regexp interpretation
1 parent e3f000f commit c964d40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Readme.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,13 @@ re.exec('/test/route');
119119

120120
## Compatibility with Express <= 4.x
121121

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:
123123

124124
* RegExp special characters can now be used in the regular path. E.g. `/user[(\\d+)]`
125125
* All RegExp special characters can now be used inside the custom match. E.g. `/:user(.*)`
126126
* No more support for asterisk matching - use an explicit parameter instead. E.g. `/(.*)`
127127
* 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)
128129

129130
## Live Demo
130131

0 commit comments

Comments
 (0)