Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add missing inputs to urlpatterntestdata.json
  • Loading branch information
anonrig committed Mar 8, 2025
commit c885bbfa8da53ca0f053401cb0774f91521382fe
17 changes: 8 additions & 9 deletions urlpattern/resources/urlpatterntestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2432,21 +2432,19 @@
},
{
"pattern": [{ "hostname": "bad#hostname" }],
"inputs": [{ "hostname": "bad" }],
"exactly_empty_components": ["port"],
"expected_match": {
"hostname": { "input": "bad", "groups": {} }
}
},
{
"pattern": [{ "hostname": "bad%hostname" }],
"exactly_empty_components": ["port"],
"expected_match": {
"hostname": { "input": "bad%hostname", "groups": {} }
}
"expected_obj": "error"
},
{
"pattern": [{ "hostname": "bad/hostname" }],
"exactly_empty_components": ["port"],
"inputs": [{ "hostname": "bad" }],
"expected_match": {
"hostname": { "input": "bad", "groups": {} }
}
Expand Down Expand Up @@ -2481,7 +2479,8 @@
},
{
"pattern": [{ "hostname": "bad\\\\hostname" }],
"expected_obj": "error"
"inputs": [{ "hostname": "badhostname" }],
"expected_match": null
},
{
"pattern": [{ "hostname": "bad^hostname" }],
Expand All @@ -2493,21 +2492,21 @@
},
{
"pattern": [{ "hostname": "bad\nhostname" }],
"exactly_empty_components": ["port"],
"inputs": [{ "hostname": "badhostname" }],
"expected_match": {
"hostname": { "input": "badhostname", "groups": {} }
}
},
{
"pattern": [{ "hostname": "bad\rhostname" }],
"exactly_empty_components": ["port"],
"inputs": [{ "hostname": "badhostname" }],
"expected_match": {
"hostname": { "input": "badhostname", "groups": {} }
}
},
{
"pattern": [{ "hostname": "bad\thostname" }],
"exactly_empty_components": ["port"],
"inputs": [{ "hostname": "badhostname" }],
"expected_match": {
"hostname": { "input": "badhostname", "groups": {} }
}
Expand Down