Skip to content

Commit f038bf6

Browse files
committed
Allow RegexpOptions in match(...) function
1 parent 6e55e15 commit f038bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export type MatchFunction<P extends object = object> = (
321321
*/
322322
export function match<P extends object = object>(
323323
str: Path,
324-
options?: ParseOptions & RegexpToFunctionOptions
324+
options?: ParseOptions & RegexpOptions & RegexpToFunctionOptions
325325
) {
326326
const keys: Key[] = [];
327327
const re = pathToRegexp(str, keys, options);

0 commit comments

Comments
 (0)