Skip to content

Commit

Permalink
fix invalid urlpattern test
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Dec 19, 2024
1 parent e24bf6f commit b2eb421
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion urlpattern/resources/urlpatterntestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,10 @@
{
"pattern": [{ "protocol": "http", "port": "80 " }],
"inputs": [{ "protocol": "http", "port": "80" }],
"expected_obj": "error"
"exactly_empty_components": ["port"],
"expected_match": {
"protocol": { "input": "http", "groups": {} }
}
},
{
"pattern": [{ "port": "80" }],
Expand Down

0 comments on commit b2eb421

Please sign in to comment.