Skip to content

Commit

Permalink
Update strict flag documentation (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Jul 8, 2020
1 parent 98ab888 commit 89008cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const { pathToRegexp, match, parse, compile } = require("path-to-regexp");
- **keys** An array to populate with keys found in the path.
- **options**
- **sensitive** When `true` the regexp will be case sensitive. (default: `false`)
- **strict** When `true` the regexp allows an optional trailing delimiter to match. (default: `false`)
- **strict** When `true` the regexp won't allow an optional trailing delimiter to match. (default: `false`)
- **end** When `true` the regexp will match to the end of the string. (default: `true`)
- **start** When `true` the regexp will match from the beginning of the string. (default: `true`)
- **delimiter** The default delimiter for segments, e.g. `[^/#?]` for `:named` patterns. (default: `'/#?'`)
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ export interface TokensToRegexpOptions {
*/
sensitive?: boolean;
/**
* When `true` the regexp allows an optional trailing delimiter to match. (default: `false`)
* When `true` the regexp won't allow an optional trailing delimiter to match. (default: `false`)
*/
strict?: boolean;
/**
Expand Down

0 comments on commit 89008cb

Please sign in to comment.