Skip to content

Commit 9f6fa0a

Browse files
committed
Update Strict flag documentation
1 parent d0d7718 commit 9f6fa0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import pathToRegexp "github.com/soongo/path-to-regexp"
5151
- **Modifier** The modifier character used for the segment (e.g. `?`)
5252
- **options**
5353
- **Sensitive** When `true` the regexp will be case sensitive. (default: `false`)
54-
- **Strict** When `true` the regexp allows an optional trailing delimiter to match. (default: `false`)
54+
- **Strict** When `true` the regexp won't allow an optional trailing delimiter to match. (default: `false`)
5555
- **End** When `true` the regexp will match to the end of the string. (default: `true`)
5656
- **Start** When `true` the regexp will match from the beginning of the string. (default: `true`)
5757
- **Validate** When `false` the function can produce an invalid (unmatched) path. (default: `true`)

path_to_regexp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type Options struct {
3939
// When true the regexp will be case sensitive. (default: false)
4040
Sensitive bool
4141

42-
// When true the regexp allows an optional trailing delimiter to match. (default: false)
42+
// When true the regexp won't allow an optional trailing delimiter to match. (default: false)
4343
Strict bool
4444

4545
// When true the regexp will match to the end of the string. (default: true)

0 commit comments

Comments
 (0)