File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 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:
6868- ** options** _ (optional)_ (See [ parse] ( #parse ) for more options)
6969 - ** sensitive** Regexp will be case sensitive. (default: ` false ` )
7070 - ** 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: ` '/' ` )
7172 - ** trailing** Allows optional trailing delimiter to match. (default: ` true ` )
7273 - ** decode** Function for decoding strings to params, or ` false ` to disable all processing. (default: ` decodeURIComponent ` )
7374
@@ -83,6 +84,7 @@ The `compile` function will return a function for transforming parameters into a
8384
8485- ** path** A string.
8586- ** options** (See [ parse] ( #parse ) for more options)
87+ - ** delimiter** The default delimiter for segments, e.g. ` [^/] ` for ` :named ` parameters. (default: ` '/' ` )
8688 - ** encode** Function for encoding input strings for output into the path, or ` false ` to disable entirely. (default: ` encodeURIComponent ` )
8789
8890``` js
@@ -113,7 +115,6 @@ The `parse` function accepts a string and returns `TokenData`, the set of tokens
113115
114116- ** path** A string.
115117- ** options** _ (optional)_
116- - ** delimiter** The default delimiter for segments, e.g. ` [^/] ` for ` :named ` parameters. (default: ` '/' ` )
117118 - ** encodePath** A function for encoding input strings. (default: ` x => x ` , recommended: [ ` encodeurl ` ] ( https://github.com/pillarjs/encodeurl ) )
118119
119120### Tokens
You can’t perform that action at this time.
0 commit comments