Skip to content

Commit

Permalink
fix invalid urlpattern test validating hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Dec 19, 2024
1 parent b2eb421 commit d66cd3c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions urlpattern/resources/urlpatterntestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2370,11 +2370,17 @@
},
{
"pattern": [{ "hostname": "bad#hostname" }],
"expected_obj": "error"
"exactly_empty_components": ["port"],
"expected_match": {
"hostname": { "input": "bad", "groups": {} }
}
},
{
"pattern": [{ "hostname": "bad%hostname" }],
"expected_obj": "error"
"exactly_empty_components": ["port"],
"expected_match": {
"hostname": { "input": "bad%hostname", "groups": {} }
}
},
{
"pattern": [{ "hostname": "bad/hostname" }],
Expand Down

0 comments on commit d66cd3c

Please sign in to comment.