diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2024-10-02 09:02:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-02 09:02:46 -0700 |
commit | 1837aed79b77b3137563d4730d02e466c85b2b87 (patch) | |
tree | 09c2fbe99033c4da32d75eeb1b66790c30d3b134 /tests/unit | |
parent | 18beb13f0ea750ba36b7f062f3cfdcc08c610431 (diff) |
Revert "fix(urlpattern): fallback to empty string for undefined group values" (#25961)
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/urlpattern_test.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/unit/urlpattern_test.ts b/tests/unit/urlpattern_test.ts index 65c224173..3c1fb0cf1 100644 --- a/tests/unit/urlpattern_test.ts +++ b/tests/unit/urlpattern_test.ts @@ -63,9 +63,3 @@ Deno.test(function urlPatternWithPrototypePollution() { RegExp.prototype.exec = originalExec; } }); - -Deno.test(function urlPatternEmptyFallback() { - const p = new URLPattern({ pathname: "/foo/bar{/:qaz}?" }); - const match = p.exec("https://example.com/foo/bar"); - assertEquals(match!.pathname.groups.qaz, ""); -}); |