Skip to content

Commit 89008cb

Browse files
authored
Update strict flag documentation (#227)
1 parent 98ab888 commit 89008cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const { pathToRegexp, match, parse, compile } = require("path-to-regexp");
3030
- **keys** An array to populate with keys found in the path.
3131
- **options**
3232
- **sensitive** When `true` the regexp will be case sensitive. (default: `false`)
33-
- **strict** When `true` the regexp allows an optional trailing delimiter to match. (default: `false`)
33+
- **strict** When `true` the regexp won't allow an optional trailing delimiter to match. (default: `false`)
3434
- **end** When `true` the regexp will match to the end of the string. (default: `true`)
3535
- **start** When `true` the regexp will match from the beginning of the string. (default: `true`)
3636
- **delimiter** The default delimiter for segments, e.g. `[^/#?]` for `:named` patterns. (default: `'/#?'`)

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ export interface TokensToRegexpOptions {
500500
*/
501501
sensitive?: boolean;
502502
/**
503-
* When `true` the regexp allows an optional trailing delimiter to match. (default: `false`)
503+
* When `true` the regexp won't allow an optional trailing delimiter to match. (default: `false`)
504504
*/
505505
strict?: boolean;
506506
/**

0 commit comments

Comments
 (0)