You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+2-1Lines changed: 2 additions & 1 deletion
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))
0 commit comments