@@ -358,10 +358,10 @@ public static function provideParse(): iterable
358
358
'non-special://:@untrusted.com/x ' => ['scheme ' => 'non-special ' , 'host ' => 'untrusted.com ' ],
359
359
'http:foo.com ' => ['scheme ' => 'http ' , 'host ' => null ],
360
360
" :foo.com \n" => null ,
361
- ' foo.com ' => [ ' scheme ' => null , ' host ' => null ] ,
361
+ ' foo.com ' => null ,
362
362
'a: foo.com ' => null ,
363
- 'http://f:21/ b ? d # e ' => [ ' scheme ' => ' http ' , ' host ' => ' f ' ] ,
364
- 'lolscheme:x x#x x ' => [ ' scheme ' => ' lolscheme ' , ' host ' => null ] ,
363
+ 'http://f:21/ b ? d # e ' => null ,
364
+ 'lolscheme:x x#x x ' => null ,
365
365
'http://f:/c ' => ['scheme ' => 'http ' , 'host ' => 'f ' ],
366
366
'http://f:0/c ' => ['scheme ' => 'http ' , 'host ' => 'f ' ],
367
367
'http://f:00000000000000/c ' => ['scheme ' => 'http ' , 'host ' => 'f ' ],
@@ -434,7 +434,7 @@ public static function provideParse(): iterable
434
434
'javascript:example.com/ ' => ['scheme ' => 'javascript ' , 'host ' => null ],
435
435
'mailto:example.com/ ' => ['scheme ' => 'mailto ' , 'host ' => null ],
436
436
'/a/b/c ' => ['scheme ' => null , 'host ' => null ],
437
- '/a/ /c ' => [ ' scheme ' => null , ' host ' => null ] ,
437
+ '/a/ /c ' => null ,
438
438
'/a%2fc ' => ['scheme ' => null , 'host ' => null ],
439
439
'/a/%2f/c ' => ['scheme ' => null , 'host ' => null ],
440
440
'#β ' => ['scheme ' => null , 'host ' => null ],
@@ -495,10 +495,10 @@ public static function provideParse(): iterable
495
495
'http://example.com/你好你好 ' => ['scheme ' => 'http ' , 'host ' => 'example.com ' ],
496
496
'http://example.com/‥/foo ' => ['scheme ' => 'http ' , 'host ' => 'example.com ' ],
497
497
"http://example.com/ \u{feff}/foo " => ['scheme ' => 'http ' , 'host ' => 'example.com ' ],
498
- "http://example.com \u{002f}\u{202e}\u{002f}\u{0066}\u{006f}\u{006f}\u{002f}\u{202d}\u{002f}\u{0062}\u{0061}\u{0072}\u{0027}\u{0020}" => [ ' scheme ' => ' http ' , ' host ' => ' example.com ' ] ,
498
+ "http://example.com \u{002f}\u{202e}\u{002f}\u{0066}\u{006f}\u{006f}\u{002f}\u{202d}\u{002f}\u{0062}\u{0061}\u{0072}\u{0027}\u{0020}" => null ,
499
499
'http://www.google.com/foo?bar=baz# ' => ['scheme ' => 'http ' , 'host ' => 'www.google.com ' ],
500
- 'http://www.google.com/foo?bar=baz# » ' => [ ' scheme ' => ' http ' , ' host ' => ' www.google.com ' ] ,
501
- 'data:test# » ' => [ ' scheme ' => ' data ' , ' host ' => null ] ,
500
+ 'http://www.google.com/foo?bar=baz# » ' => null ,
501
+ 'data:test# » ' => null ,
502
502
'http://www.google.com ' => ['scheme ' => 'http ' , 'host ' => 'www.google.com ' ],
503
503
'http://192.0x00A80001 ' => ['scheme ' => 'http ' , 'host ' => '192.0x00A80001 ' ],
504
504
'http://www/foo%2Ehtml ' => ['scheme ' => 'http ' , 'host ' => 'www ' ],
@@ -706,11 +706,11 @@ public static function provideParse(): iterable
706
706
'test-a-colon-slash-slash-b.html ' => ['scheme ' => null , 'host ' => null ],
707
707
'http://example.org/test?a#bc ' => ['scheme ' => 'http ' , 'host ' => 'example.org ' ],
708
708
'http: \\/ \\/f:b \\/c ' => ['scheme ' => 'http ' , 'host ' => null ],
709
- 'http: \\/ \\/f: \\/c ' => [ ' scheme ' => ' http ' , ' host ' => null ] ,
709
+ 'http: \\/ \\/f: \\/c ' => null ,
710
710
'http: \\/ \\/f:fifty-two \\/c ' => ['scheme ' => 'http ' , 'host ' => null ],
711
711
'http: \\/ \\/f:999999 \\/c ' => ['scheme ' => 'http ' , 'host ' => null ],
712
712
'non-special: \\/ \\/f:999999 \\/c ' => ['scheme ' => 'non-special ' , 'host ' => null ],
713
- 'http: \\/ \\/f: 21 \\/ b ? d # e ' => [ ' scheme ' => ' http ' , ' host ' => null ] ,
713
+ 'http: \\/ \\/f: 21 \\/ b ? d # e ' => null ,
714
714
'http: \\/ \\/[1::2]:3:4 ' => ['scheme ' => 'http ' , 'host ' => null ],
715
715
'http: \\/ \\/2001::1 ' => ['scheme ' => 'http ' , 'host ' => null ],
716
716
'http: \\/ \\/2001::1] ' => ['scheme ' => 'http ' , 'host ' => null ],
@@ -734,8 +734,8 @@ public static function provideParse(): iterable
734
734
'http:@:www.example.com ' => ['scheme ' => 'http ' , 'host ' => null ],
735
735
'http: \\/@:www.example.com ' => ['scheme ' => 'http ' , 'host ' => null ],
736
736
'http: \\/ \\/@:www.example.com ' => ['scheme ' => 'http ' , 'host ' => null ],
737
- 'http: \\/ \\/example example.com ' => [ ' scheme ' => ' http ' , ' host ' => null ] ,
738
- 'http: \\/ \\/Goo%20 goo%7C|.com ' => [ ' scheme ' => ' http ' , ' host ' => null ] ,
737
+ 'http: \\/ \\/example example.com ' => null ,
738
+ 'http: \\/ \\/Goo%20 goo%7C|.com ' => null ,
739
739
'http: \\/ \\/[] ' => ['scheme ' => 'http ' , 'host ' => null ],
740
740
'http: \\/ \\/[:] ' => ['scheme ' => 'http ' , 'host ' => null ],
741
741
'http: \\/ \\/GOO \\u00a0 \\u3000goo.com ' => ['scheme ' => 'http ' , 'host ' => null ],
@@ -752,8 +752,8 @@ public static function provideParse(): iterable
752
752
'http: \\/ \\/hello%00 ' => ['scheme ' => 'http ' , 'host ' => null ],
753
753
'http: \\/ \\/192.168.0.257 ' => ['scheme ' => 'http ' , 'host ' => null ],
754
754
'http: \\/ \\/%3g%78%63%30%2e%30%32%35%30%2E.01 ' => ['scheme ' => 'http ' , 'host ' => null ],
755
- 'http: \\/ \\/192.168.0.1 hello ' => [ ' scheme ' => ' http ' , ' host ' => null ] ,
756
- 'https: \\/ \\/x x:12 ' => [ ' scheme ' => ' https ' , ' host ' => null ] ,
755
+ 'http: \\/ \\/192.168.0.1 hello ' => null ,
756
+ 'https: \\/ \\/x x:12 ' => null ,
757
757
'http: \\/ \\/[www.google.com] \\/ ' => ['scheme ' => 'http ' , 'host ' => null ],
758
758
'http: \\/ \\/[google.com] ' => ['scheme ' => 'http ' , 'host ' => null ],
759
759
'http: \\/ \\/[::1.2.3.4x] ' => ['scheme ' => 'http ' , 'host ' => null ],
@@ -763,7 +763,7 @@ public static function provideParse(): iterable
763
763
'.. \\/i ' => ['scheme ' => null , 'host ' => null ],
764
764
'\\/i ' => ['scheme ' => null , 'host ' => null ],
765
765
'sc: \\/ \\/ \\u0000 \\/ ' => ['scheme ' => 'sc ' , 'host ' => null ],
766
- 'sc: \\/ \\/ \\/ ' => [ ' scheme ' => ' sc ' , ' host ' => null ] ,
766
+ 'sc: \\/ \\/ \\/ ' => null ,
767
767
'sc: \\/ \\/@ \\/ ' => ['scheme ' => 'sc ' , 'host ' => null ],
768
768
'sc: \\/ \\/te@s:t@ \\/ ' => ['scheme ' => 'sc ' , 'host ' => null ],
769
769
'sc: \\/ \\/: \\/ ' => ['scheme ' => 'sc ' , 'host ' => null ],
0 commit comments