File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ The `match` function returns a function for matching strings against a path:
68
68
- ** options** _ (optional)_ (See [ parse] ( #parse ) for more options)
69
69
- ** sensitive** Regexp will be case sensitive. (default: ` false ` )
70
70
- ** end** Validate the match reaches the end of the string. (default: ` true ` )
71
+ - ** delimiter** The default delimiter for segments, e.g. ` [^/] ` for ` :named ` parameters. (default: ` '/' ` )
71
72
- ** trailing** Allows optional trailing delimiter to match. (default: ` true ` )
72
73
- ** decode** Function for decoding strings to params, or ` false ` to disable all processing. (default: ` decodeURIComponent ` )
73
74
@@ -83,6 +84,7 @@ The `compile` function will return a function for transforming parameters into a
83
84
84
85
- ** path** A string.
85
86
- ** options** (See [ parse] ( #parse ) for more options)
87
+ - ** delimiter** The default delimiter for segments, e.g. ` [^/] ` for ` :named ` parameters. (default: ` '/' ` )
86
88
- ** encode** Function for encoding input strings for output into the path, or ` false ` to disable entirely. (default: ` encodeURIComponent ` )
87
89
88
90
``` js
@@ -113,7 +115,6 @@ The `parse` function accepts a string and returns `TokenData`, the set of tokens
113
115
114
116
- ** path** A string.
115
117
- ** options** _ (optional)_
116
- - ** delimiter** The default delimiter for segments, e.g. ` [^/] ` for ` :named ` parameters. (default: ` '/' ` )
117
118
- ** encodePath** A function for encoding input strings. (default: ` x => x ` , recommended: [ ` encodeurl ` ] ( https://github.com/pillarjs/encodeurl ) )
118
119
119
120
### Tokens
You can’t perform that action at this time.
0 commit comments