File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ var pathToRegexp = require('path-to-regexp')
30
30
- ** options**
31
31
- ** sensitive** When ` true ` the regexp will be case sensitive. (default: ` false ` )
32
32
- ** strict** When ` true ` the regexp allows an optional trailing delimiter to match. (default: ` false ` )
33
- - ** end** When ` false ` the regexp will match the beginning instead of the entire string. (default: ` true ` )
33
+ - ** end** When ` true ` the regexp will match to the end of the string. (default: ` true ` )
34
+ - ** start** When ` true ` the regexp will match from the beginning of the string. (default: ` true ` )
34
35
- Advanced options (use for non-pathname strings, e.g. host names):
35
36
- ** delimiter** The default delimiter for segments. (default: ` '/' ` )
36
37
- ** endsWith** Optional character, or list of characters, to treat as "end" characters.
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ declare namespace pathToRegexp {
11
11
*/
12
12
strict ?: boolean ;
13
13
/**
14
- * When `false ` the regexp will match the end instead of the entire string. (default: `true`)
14
+ * When `true ` the regexp will match to the end of the string. (default: `true`)
15
15
*/
16
- start ?: boolean ;
16
+ end ?: boolean ;
17
17
/**
18
- * When `false ` the regexp will match the beginning instead of the entire string. (default: `true`)
18
+ * When `true ` the regexp will match from the beginning of the string. (default: `true`)
19
19
*/
20
- end ?: boolean ;
20
+ start ?: boolean ;
21
21
/**
22
22
* Sets the final character for non-ending optimistic matches. (default: `/`)
23
23
*/
You can’t perform that action at this time.
0 commit comments