@@ -1426,6 +1426,7 @@ describe('string', () => {
1426
1426
[ 'ftp://ftp.is.co.za/rfc/rfc1808.txt' , true ] ,
1427
1427
[ 'http://www.ietf.org/rfc/rfc2396.txt' , true ] ,
1428
1428
[ 'ldap://[2001:db8::7]/c=GB?objectClass?one' , true ] ,
1429
+ [ 'ldap://2001:db8::7/c=GB?objectClass?one' , false ] ,
1429
1430
[ 'mailto:[email protected] ' , true ] ,
1430
1431
[ 'news:comp.infosystems.www.servers.unix' , true ] ,
1431
1432
[ 'tel:+1-816-555-1212' , true ] ,
@@ -1438,6 +1439,10 @@ describe('string', () => {
1438
1439
[ 'http://[a:b:c:d:e::1.2.3.4]' , true ] ,
1439
1440
[ 'coap://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]' , true ] ,
1440
1441
[ 'http://[1080:0:0:0:8:800:200C:417A]' , true ] ,
1442
+ [ 'http://v1.09azAZ-._~!$&\'()*+,;=:' , true ] , // This doesn't look valid, but it is. The `v1.09azAZ-._~!$&\'()*+,;=` part is a valid registered name as it has no invalid characters
1443
+ [ 'http://a:b:c:d:e::1.2.3.4' , false ] ,
1444
+ [ 'coap://FEDC:BA98:7654:3210:FEDC:BA98:7654:3210' , false ] ,
1445
+ [ 'http://1080:0:0:0:8:800:200C:417A' , false ] ,
1441
1446
[ 'http://127.0.0.1:8000/foo?bar' , true ] ,
1442
1447
[ 'http://asdf:qwer@localhost:8000' , true ] ,
1443
1448
[ 'http://user:pass%3A@localhost:80' , true ] ,
@@ -1467,8 +1472,10 @@ describe('string', () => {
1467
1472
[ 'http://_jabber._tcp.google.com:80/test' , true ] ,
1468
1473
[ 'http://user:pass@_jabber._tcp.google.com:80/test' , true ] ,
1469
1474
[ 'http://[fe80::1]/a/b?a=b#abc' , true ] ,
1475
+ [ 'http://fe80::1/a/b?a=b#abc' , false ] ,
1470
1476
[ 'http://user:password@[3ffe:2a00:100:7031::1]:8080' , true ] ,
1471
1477
[ 'coap://[1080:0:0:0:8:800:200C:417A]:61616/' , true ] ,
1478
+ [ 'coap://1080:0:0:0:8:800:200C:417A:61616/' , false ] ,
1472
1479
[ 'git+http://github.com/joyent/node.git' , true ] ,
1473
1480
[ 'http://bucket_name.s3.amazonaws.com/image.jpg' , true ] ,
1474
1481
[ 'dot.test://foo/bar' , true ] ,
0 commit comments