Commit cc81a77 1 parent aac12b2 commit cc81a77 Copy full SHA for cc81a77
File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1146
1146
},
1147
1147
{
1148
1148
"pattern" : [{ "protocol" : " http" , "port" : " 100000" }],
1149
+ "inputs" : [{ "protocol" : " http" , "port" : " 100000" }],
1149
1150
"expected_obj" : " error"
1150
1151
},
1151
1152
{
2400
2401
"pattern" : [{ "hostname" : " bad]hostname" }],
2401
2402
"expected_obj" : " error"
2402
2403
},
2404
+ {
2405
+ "pattern" : [{ "hostname" : " bad\\\\ hostname" }],
2406
+ "inputs" : [{ "hostname" : " badhostname" }],
2407
+ "expected_match" : null
2408
+ },
2403
2409
{
2404
2410
"pattern" : [{ "hostname" : " bad^hostname" }],
2405
2411
"expected_obj" : " error"
2408
2414
"pattern" : [{ "hostname" : " bad|hostname" }],
2409
2415
"expected_obj" : " error"
2410
2416
},
2417
+ {
2418
+ "pattern" : [{ "hostname" : " bad\n hostname" }],
2419
+ "inputs" : [{ "hostname" : " badhostname" }],
2420
+ "expected_match" : {
2421
+ "hostname" : { "input" : " badhostname" , "groups" : {} }
2422
+ }
2423
+ },
2424
+ {
2425
+ "pattern" : [{ "hostname" : " bad\r hostname" }],
2426
+ "inputs" : [{ "hostname" : " badhostname" }],
2427
+ "expected_match" : {
2428
+ "hostname" : { "input" : " badhostname" , "groups" : {} }
2429
+ }
2430
+ },
2431
+ {
2432
+ "pattern" : [{ "hostname" : " bad\t hostname" }],
2433
+ "inputs" : [{ "hostname" : " badhostname" }],
2434
+ "expected_match" : {
2435
+ "hostname" : { "input" : " badhostname" , "groups" : {} }
2436
+ }
2437
+ },
2411
2438
{
2412
2439
"pattern" : [{}],
2413
2440
"inputs" : [" https://example.com/" ],
You can’t perform that action at this time.
0 commit comments