File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 12021202 {
12031203 "pattern" : [{ "protocol" : " http" , "port" : " 80 " }],
12041204 "inputs" : [{ "protocol" : " http" , "port" : " 80" }],
1205- "exactly_empty_components" : [" port" ],
1206- "expected_match" : {
1207- "protocol" : { "input" : " http" , "groups" : {} }
1208- }
1205+ "expected_obj" : {
1206+ "protocol" : " http" ,
1207+ "port" : " 80"
1208+ },
1209+ "expected_match" : null
12091210 },
12101211 {
12111212 "pattern" : [{ "protocol" : " http" , "port" : " 100000" }],
18741875 {
18751876 "pattern" : [ " https://{sub.}?example{.com/}foo" ],
18761877 "inputs" : [ " https://example.com/foo" ],
1877- "expected_obj" : " error"
1878+ "exactly_empty_components" : [ " port" ],
1879+ "expected_obj" : {
1880+ "protocol" : " https" ,
1881+ "hostname" : " {sub.}?example.com" ,
1882+ "pathname" : " *"
1883+ },
1884+ "expected_match" : {
1885+ "protocol" : { "input" : " https" , "groups" : {} },
1886+ "hostname" : { "input" : " example.com" , "groups" : {} },
1887+ "pathname" : { "input" : " /foo" , "groups" : { "0" : " /foo" } }
1888+ }
18781889 },
18791890 {
18801891 "pattern" : [ " {https://}example.com/foo" ],
You can’t perform that action at this time.
0 commit comments