We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77df638 commit 5df644eCopy full SHA for 5df644e
src/index.spec.ts
@@ -2592,6 +2592,24 @@ const TESTS: Test[] = [
2592
[{ foo: "123" }, "/whatever/123"],
2593
[{ foo: "#" }, null]
2594
]
2595
+ ],
2596
+ /**
2597
+ * https://github.com/pillarjs/path-to-regexp/issues/260
2598
+ */
2599
+ [
2600
+ ":name*",
2601
+ undefined,
2602
2603
+ {
2604
+ name: "name",
2605
+ prefix: "",
2606
+ suffix: "",
2607
+ modifier: "*",
2608
+ pattern: "[^\\/#\\?]+?"
2609
+ }
2610
2611
+ [["foobar", ["foobar", "foobar"]]],
2612
+ [[{ name: "foobar" }, "foobar"]]
2613
2614
];
2615
0 commit comments