diff --git a/src/index.spec.ts b/src/index.spec.ts index b0a65b5..13d0cd1 100644 --- a/src/index.spec.ts +++ b/src/index.spec.ts @@ -2592,7 +2592,25 @@ const TESTS: Test[] = [ [{ foo: "123" }, "/whatever/123"], [{ foo: "#" }, null] ] - ] + ], + /** + * https://github.com/pillarjs/path-to-regexp/issues/260 + */ + [ + ":name*", + undefined, + [ + { + name: "name", + prefix: "", + suffix: "", + modifier: "*", + pattern: "[^\\/#\\?]+?", + }, + ], + [["foobar", ["foobar", "foobar"]]], + [[{ name: "foobar" }, "foobar"]], + ], ]; /**