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 1327699 commit 943c907Copy full SHA for 943c907
src/index.spec.ts
@@ -2557,11 +2557,11 @@ const TESTS: Test[] = [
2557
* Nested parenthesis.
2558
*/
2559
[
2560
- "/:foo(\\d+(?:\\.\\d+)?)",
2561
- {},
+ "/:test(\\d+(?:\\.\\d+)?)",
+ undefined,
2562
2563
{
2564
- name: "foo",
+ name: "test",
2565
prefix: "/",
2566
delimiter: "/",
2567
optional: false,
@@ -2571,12 +2571,18 @@ const TESTS: Test[] = [
2571
],
2572
2573
["/123", ["/123", "123"]],
2574
- ["/123.123", ["/123.123", "123.123"]]
+ ["/abc", null],
2575
+ ["/123/abc", null],
2576
+ ["/123.123", ["/123.123", "123.123"]],
2577
+ ["/123.abc", null]
2578
2579
- [{ foo: 123 }, "/123"],
- [{ foo: 123.123 }, "/123.123"],
- [{ foo: "123" }, "/123"]
2580
+ [{ test: 123 }, "/123"],
2581
+ [{ test: 123.123 }, "/123.123"],
2582
+ [{ test: "abc" }, null],
2583
+ [{ test: "123" }, "/123"],
2584
+ [{ test: "123.123" }, "/123.123"],
2585
+ [{ test: "123.abc" }, null]
2586
]
2587
2588
];
0 commit comments