8000 Add strict option to README · pillarjs/path-to-regexp@46b9f0b · GitHub
[go: up one dir, main page]

Skip to content

Commit 46b9f0b

Browse files
committed
Add strict option to README
1 parent 7015c1f commit 46b9f0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ The `pathToRegexp` function returns a regular expression with `keys` as a proper
3333
- **options** _(optional)_
3434
- **sensitive** Regexp will be case sensitive. (default: `false`)
3535
- **trailing** Allows optional trailing delimiter to match. (default: `true`)
36+
- **strict** Verify patterns are valid and safe to use. (default: `false`, recommended: `true`)
3637
- **end** Match to the end of the string. (default: `true`)
3738
- **start** Match from the beginning of the string. (default: `true`)
3839
- **loose** Allow the delimiter to be arbitrarily repeated, e.g. `/` or `///`. (default: `true`)

0 commit comments

Comments
 (0)
0