|
1239 | 1239 | "pathname": { "input": "/bar", "groups": {}}
|
1240 | 1240 | }
|
1241 | 1241 | },
|
1242 |
| - { |
1243 |
| - "pattern": [{ "pathname": "./foo/bar", "baseURL": "https://example.com" }], |
1244 |
| - "inputs": [{ "pathname": "foo/bar", "baseURL": "https://example.com" }], |
1245 |
| - "exactly_empty_components": [ "port" ], |
1246 |
| - "expected_obj": { |
1247 |
| - "pathname": "/foo/bar" |
1248 |
| - }, |
1249 |
| - "expected_match": { |
1250 |
| - "protocol": { "input": "https", "groups": {}}, |
1251 |
| - "hostname": { "input": "example.com", "groups": {}}, |
1252 |
| - "pathname": { "input": "/foo/bar", "groups": {}} |
1253 |
| - } |
1254 |
| - }, |
1255 |
| - { |
1256 |
| - "pattern": [{ "pathname": "", "baseURL": "https://example.com" }], |
1257 |
| - "inputs": [{ "pathname": "/", "baseURL": "https://example.com" }], |
1258 |
| - "exactly_empty_components": [ "port" ], |
1259 |
| - "expected_obj": { |
1260 |
| - "pathname": "/" |
1261 |
| - }, |
1262 |
| - "expected_match": { |
1263 |
| - "protocol": { "input": "https", "groups": {}}, |
1264 |
| - "hostname": { "input": "example.com", "groups": {}}, |
1265 |
| - "pathname": { "input": "/", "groups": {}} |
1266 |
| - } |
1267 |
| - }, |
1268 | 1242 | {
|
1269 | 1243 | "pattern": [{ "pathname": "{/bar}", "baseURL": "https://example.com/foo/" }],
|
1270 | 1244 | "inputs": [{ "pathname": "./bar", "baseURL": "https://example.com/foo/" }],
|
|
1283 | 1257 | },
|
1284 | 1258 | "expected_match": null
|
1285 | 1259 | },
|
1286 |
| - { |
1287 |
| - "pattern": [{ "pathname": "b", "baseURL": "https://example.com/foo/" }], |
1288 |
| - "inputs": [{ "pathname": "./b", "baseURL": "https://example.com/foo/" }], |
1289 |
| - "exactly_empty_components": [ "port" ], |
1290 |
| - "expected_obj": { |
1291 |
| - "pathname": "/foo/b" |
1292 |
| - }, |
1293 |
| - "expected_match": { |
1294 |
| - "protocol": { "input": "https", "groups": {}}, |
1295 |
| - "hostname": { "input": "example.com", "groups": {}}, |
1296 |
| - "pathname": { "input": "/foo/b", "groups": {}} |
1297 |
| - } |
1298 |
| - }, |
1299 | 1260 | {
|
1300 | 1261 | "pattern": [{ "pathname": "foo/bar" }],
|
1301 | 1262 | "inputs": [ "https://example.com/foo/bar" ],
|
1302 | 1263 | "expected_match": null
|
1303 | 1264 | },
|
1304 |
| - { |
1305 |
| - "pattern": [{ "pathname": "foo/bar", "baseURL": "https://example.com" }], |
1306 |
| - "inputs": [ "https://example.com/foo/bar" ], |
1307 |
| - "exactly_empty_components": [ "port" ], |
1308 |
| - "expected_obj": { |
1309 |
| - "pathname": "/foo/bar" |
1310 |
| - }, |
1311 |
| - "expected_match": { |
1312 |
| - "protocol": { "input": "https", "groups": {}}, |
1313 |
| - "hostname": { "input": "example.com", "groups": {}}, |
1314 |
| - "pathname": { "input": "/foo/bar", "groups": {}} |
1315 |
| - } |
1316 |
| - }, |
1317 |
| - { |
1318 |
| - "pattern": [{ "pathname": ":name.html", "baseURL": "https://example.com" }], |
1319 |
| - "inputs": [ "https://example.com/foo.html"] , |
1320 |
| - "exactly_empty_components": [ "port" ], |
1321 |
| - "expected_obj": { |
1322 |
| - "pathname": "/:name.html" |
1323 |
| - }, |
1324 |
| - "expected_match": { |
1325 |
| - "protocol": { "input": "https", "groups": {}}, |
1326 |
| - "hostname": { "input": "example.com", "groups": {}}, |
1327 |
| - "pathname": { "input": "/foo.html", "groups": { "name": "foo" }} |
1328 |
| - } |
1329 |
| - }, |
1330 | 1265 | {
|
1331 | 1266 | "pattern": [{ "search": "q=caf%C3%A9" }],
|
1332 | 1267 | "inputs": [{ "search": "q=café" }],
|
|
1387 | 1322 | "pathname": { "input": "8675309", "groups": { "number": "8675309" }}
|
1388 | 1323 | }
|
1389 | 1324 | },
|
1390 |
| - { |
1391 |
| - "pattern": [{ "pathname": "/(\\m)" }], |
1392 |
| - "expected_obj": "error" |
1393 |
| - }, |
1394 | 1325 | {
|
1395 | 1326 | "pattern": [{ "pathname": "/foo!" }],
|
1396 | 1327 | "inputs": [{ "pathname": "/foo!" }],
|
|
1472 | 1403 | "pathname": { "input": "var%20x%20=%201;", "groups": {}}
|
1473 | 1404 | }
|
1474 | 1405 | },
|
1475 |
| - { |
1476 |
| - "pattern": [{ "pathname": "/foo/bar" }], |
1477 |
| - "inputs": [ "./foo/bar", "https://example.com" ], |
1478 |
| - "expected_match": { |
1479 |
| - "hostname": { "input": "example.com", "groups": { "0": "example.com" } }, |
1480 |
| - "pathname": { "input": "/foo/bar", "groups": {} }, |
1481 |
| - "protocol": { "input": "https", "groups": { "0": "https" } } |
1482 |
| - } |
1483 |
| - }, |
1484 | 1406 | {
|
1485 | 1407 | "pattern": [{ "pathname": "/foo/bar" }],
|
1486 | 1408 | "inputs": [ { "pathname": "/foo/bar" }, "https://example.com" ],
|
|
2141 | 2063 | },
|
2142 | 2064 | "expected_match": null
|
2143 | 2065 | },
|
2144 |
| - { |
2145 |
| - "pattern": [ "data{\\:}channel.html", "https://example.com" ], |
2146 |
| - "inputs": [ "https://example.com/data:channel.html" ], |
2147 |
| - "exactly_empty_components": [ "port" ], |
2148 |
| - "expected_obj": { |
2149 |
| - "protocol": "https", |
2150 |
| - "hostname": "example.com", |
2151 |
| - "pathname": "/data\\:channel.html", |
2152 |
| - "search": "*", |
2153 |
| - "hash": "*" |
2154 |
| - }, |
2155 |
| - "expected_match": { |
2156 |
| - "protocol": { "input": "https", "groups": {} }, |
2157 |
| - "hostname": { "input": "example.com", "groups": {} }, |
2158 |
| - "pathname": { "input": "/data:channel.html", "groups": {} } |
2159 |
| - } |
2160 |
| - }, |
2161 | 2066 | {
|
2162 | 2067 | "pattern": [ "http://[\\:\\:1]/" ],
|
2163 | 2068 | "inputs": [ "http://[::1]/" ],
|
|
0 commit comments