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 1e055be
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions urlpattern/resources/urlpatterntestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2370,15 +2370,24 @@
},
{
"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" }],
"expected_obj": "error"
"exactly_empty_components": ["port"],
"expected_match": {
"hostname": { "input": "bad", "groups": {} }
}
},
{
"pattern": [{ "hostname": "bad\\:hostname" }],
Expand Down

0 comments on commit 1e055be

Please sign in to comment.