Skip to content

Commit 35fda83

Browse files
committed
Update tests/urlpatterntestdata.json
1 parent 359bca3 commit 35fda83

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

tests/urlpatterntestdata.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,22 @@
12661266
},
12671267
"expected_match": null
12681268
},
1269+
{
1270+
"pattern": [{ "protocol": "https", "port": "443*" }],
1271+
"inputs": [{ "protocol": "https", "port": "4430" }],
1272+
"expected_match": {
1273+
"protocol": { "input": "https", "groups": {} },
1274+
"port": { "input": "4430", "groups": { "0": "0" }}
1275+
}
1276+
},
1277+
{
1278+
"pattern": [{ "protocol": "https", "port": "*443" }],
1279+
"inputs": [{ "protocol": "https", "port": "1443" }],
1280+
"expected_match": {
1281+
"protocol": { "input": "https", "groups": {} },
1282+
"port": { "input": "1443", "groups": { "0": "1" }}
1283+
}
1284+
},
12691285
{
12701286
"pattern": [{ "pathname": "/foo/bar" }],
12711287
"inputs": [{ "pathname": "/foo/./bar" }],
@@ -3154,5 +3170,12 @@
31543170
"groups": {"0": "barbaz"}
31553171
}
31563172
}
3173+
},
3174+
{
3175+
"pattern": [{ "pathname": "/:𠀀" }],
3176+
"inputs": [{ "pathname": "/foo" }],
3177+
"expected_match": {
3178+
"pathname": { "input": "/foo", "groups": { "𠀀": "foo" } }
3179+
}
31573180
}
31583181
]

0 commit comments

Comments
 (0)