Skip to content

Commit

Permalink
Allow RegexpOptions in match(...) function
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Nov 12, 2019
1 parent 6e55e15 commit f038bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export type MatchFunction<P extends object = object> = (
*/
export function match<P extends object = object>(
str: Path,
options?: ParseOptions & RegexpToFunctionOptions
options?: ParseOptions & RegexpOptions & RegexpToFunctionOptions
) {
const keys: Key[] = [];
const re = pathToRegexp(str, keys, options);
Expand Down

0 comments on commit f038bf6

Please sign in to comment.