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
+3-1
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ const fn = match("/foo/:bar");
78
78
79
79
## PathToRegexp
80
80
81
-
The `pathToRegexp` function returns a regular expression for matching strings against paths. It
81
+
The `pathToRegexp` function returns the `regexp`for matching strings against paths, and an array of `keys` for understanding the `RegExp#exec` matches.
82
82
83
83
-**path** String or array of strings.
84
84
-**options**_(optional)_ (See [parse](#parse) for more options)
@@ -89,6 +89,8 @@ The `pathToRegexp` function returns a regular expression for matching strings ag
0 commit comments