Browse Source

Fix parsing tlds. Fixes #74

brantje 1 year ago
parent
commit
0843fc4fa3
No account linked to committer's email address
6 changed files with 744 additions and 264 deletions
  1. 2
    0
      js/lib/data/tlds.js
  2. 31
    0
      js/lib/parseTLD.js
  3. 3
    8
      js/lib/parseUrl.js
  4. 2
    0
      karma.conf.js
  5. 2
    0
      manifest.json
  6. 704
    256
      tests/unit/lib/parseUrl.js

+ 2
- 0
js/lib/data/tlds.js
File diff suppressed because it is too large
View File


+ 31
- 0
js/lib/parseTLD.js View File

@@ -0,0 +1,31 @@
1
+var parse_host = function(host){
2
+    if(!tlds){
3
+        throw new Error('No TLDs!');
4
+    }
5
+
6
+    var parts = host.split(".");
7
+    var stack = "";
8
+    var tld_level = 1; //unknown tld are 1st level
9
+    for(var i=parts.length-1, part;i>=0;i--){
10
+        part = parts[i];
11
+        stack = stack ? part + "." + stack : part;
12
+        if(!tlds[stack]){
13
+            break;
14
+        }
15
+        tld_level = tlds[stack];
16
+    }
17
+    if(parts.length <= tld_level ) {
18
+        return {
19
+            tld: null,
20
+            domain: host
21
+        };
22
+    } else {
23
+        return  {
24
+            tld     : parts.slice(-tld_level).join('.'),
25
+            domain  : parts.slice(-tld_level-1).join('.'),
26
+            sub     : parts.slice(0, (-tld_level-1)).join('.'),
27
+        };
28
+    }
29
+
30
+
31
+};

+ 3
- 8
js/lib/parseUrl.js View File

@@ -50,14 +50,9 @@ function processURL(URL, ignoreProtocol, ignoreSubdomain, ignorePath, ignorePort
50 50
         baseHost = host;
51 51
     }
52 52
     else {
53
-        var result = host.match(/[^./]+\.[^./]+$/); // catch the two last parts, it's de hostname and the tld
54
-        //@TODO Implement known list of TLDs
55
-        //@url https://github.com/131/node-tld/blob/master/effective_tld_names.json
56
-
57
-        if(result) {
58
-            baseHost = result[0];
59
-        } else {
60
-            baseHost = host;
53
+        var tld = parse_host(host);
54
+        if(tld) {
55
+            baseHost = tld.domain;
61 56
         }
62 57
     }
63 58
     var returnURL = "";

+ 2
- 0
karma.conf.js View File

@@ -19,6 +19,8 @@ module.exports = function (config) {
19 19
 
20 20
         // list of files / patterns to load in the browser
21 21
         files: [
22
+            'js/lib/data/tlds.js',
23
+            'js/lib/parseTLD.js',
22 24
             'js/lib/parseUrl.js',
23 25
             { pattern: 'tests/**/*.js', included: true }
24 26
         ],

+ 2
- 0
manifest.json View File

@@ -20,6 +20,8 @@
20 20
   "background": {
21 21
     "scripts": [
22 22
       "/js/vendor/jquery/jquery.js",
23
+      "/js/lib/data/tlds.js",
24
+      "/js/lib/parseTLD.js",
23 25
       "/js/lib/parseUrl.js",
24 26
       "/js/vendor/sjcl/sjcl.js",
25 27
       "/js/lib/promise.js",

+ 704
- 256
tests/unit/lib/parseUrl.js View File

@@ -1343,901 +1343,1349 @@ var testCombinations = [{
1343 1343
     "ignorePort": false,
1344 1344
     "expected": "https://subdomain.example.com/page/login"
1345 1345
 }, {
1346
-    "url": "http://192.168.1.1",
1346
+    "url": "http://example.com.br",
1347 1347
     "ignoreProtocol": true,
1348 1348
     "ignoreSubdomain": true,
1349 1349
     "ignorePath": true,
1350 1350
     "ignorePort": true,
1351
-    "expected": "192.168.1.1"
1351
+    "expected": "example.com.br"
1352 1352
 }, {
1353
-    "url": "http://192.168.1.1",
1353
+    "url": "http://example.com.br",
1354 1354
     "ignoreProtocol": true,
1355 1355
     "ignoreSubdomain": true,
1356 1356
     "ignorePath": true,
1357 1357
     "ignorePort": false,
1358
-    "expected": "192.168.1.1"
1358
+    "expected": "example.com.br"
1359 1359
 }, {
1360
-    "url": "http://192.168.1.1",
1360
+    "url": "http://example.com.br",
1361 1361
     "ignoreProtocol": true,
1362 1362
     "ignoreSubdomain": true,
1363 1363
     "ignorePath": false,
1364 1364
     "ignorePort": true,
1365
-    "expected": "192.168.1.1"
1365
+    "expected": "example.com.br"
1366 1366
 }, {
1367
-    "url": "http://192.168.1.1",
1367
+    "url": "http://example.com.br",
1368 1368
     "ignoreProtocol": true,
1369 1369
     "ignoreSubdomain": true,
1370 1370
     "ignorePath": false,
1371 1371
     "ignorePort": false,
1372
-    "expected": "192.168.1.1"
1372
+    "expected": "example.com.br"
1373 1373
 }, {
1374
-    "url": "http://192.168.1.1",
1374
+    "url": "http://example.com.br",
1375 1375
     "ignoreProtocol": true,
1376 1376
     "ignoreSubdomain": false,
1377 1377
     "ignorePath": true,
1378 1378
     "ignorePort": true,
1379
-    "expected": "192.168.1.1"
1379
+    "expected": "example.com.br"
1380 1380
 }, {
1381
-    "url": "http://192.168.1.1",
1381
+    "url": "http://example.com.br",
1382 1382
     "ignoreProtocol": true,
1383 1383
     "ignoreSubdomain": false,
1384 1384
     "ignorePath": true,
1385 1385
     "ignorePort": false,
1386
-    "expected": "192.168.1.1"
1386
+    "expected": "example.com.br"
1387 1387
 }, {
1388
-    "url": "http://192.168.1.1",
1388
+    "url": "http://example.com.br",
1389 1389
     "ignoreProtocol": true,
1390 1390
     "ignoreSubdomain": false,
1391 1391
     "ignorePath": false,
1392 1392
     "ignorePort": true,
1393
-    "expected": "192.168.1.1"
1393
+    "expected": "example.com.br"
1394 1394
 }, {
1395
-    "url": "http://192.168.1.1",
1395
+    "url": "http://example.com.br",
1396 1396
     "ignoreProtocol": true,
1397 1397
     "ignoreSubdomain": false,
1398 1398
     "ignorePath": false,
1399 1399
     "ignorePort": false,
1400
-    "expected": "192.168.1.1"
1400
+    "expected": "example.com.br"
1401 1401
 }, {
1402
-    "url": "http://192.168.1.1",
1402
+    "url": "http://example.com.br",
1403 1403
     "ignoreProtocol": false,
1404 1404
     "ignoreSubdomain": true,
1405 1405
     "ignorePath": true,
1406 1406
     "ignorePort": true,
1407
-    "expected": "http://192.168.1.1"
1407
+    "expected": "http://example.com.br"
1408 1408
 }, {
1409
-    "url": "http://192.168.1.1",
1409
+    "url": "http://example.com.br",
1410 1410
     "ignoreProtocol": false,
1411 1411
     "ignoreSubdomain": true,
1412 1412
     "ignorePath": true,
1413 1413
     "ignorePort": false,
1414
-    "expected": "http://192.168.1.1"
1414
+    "expected": "http://example.com.br"
1415 1415
 }, {
1416
-    "url": "http://192.168.1.1",
1416
+    "url": "http://example.com.br",
1417 1417
     "ignoreProtocol": false,
1418 1418
     "ignoreSubdomain": true,
1419 1419
     "ignorePath": false,
1420 1420
     "ignorePort": true,
1421
-    "expected": "http://192.168.1.1"
1421
+    "expected": "http://example.com.br"
1422 1422
 }, {
1423
-    "url": "http://192.168.1.1",
1423
+    "url": "http://example.com.br",
1424 1424
     "ignoreProtocol": false,
1425 1425
     "ignoreSubdomain": true,
1426 1426
     "ignorePath": false,
1427 1427
     "ignorePort": false,
1428
-    "expected": "http://192.168.1.1"
1428
+    "expected": "http://example.com.br"
1429 1429
 }, {
1430
-    "url": "http://192.168.1.1",
1430
+    "url": "http://example.com.br",
1431 1431
     "ignoreProtocol": false,
1432 1432
     "ignoreSubdomain": false,
1433 1433
     "ignorePath": true,
1434 1434
     "ignorePort": true,
1435
-    "expected": "http://192.168.1.1"
1435
+    "expected": "http://example.com.br"
1436 1436
 }, {
1437
-    "url": "http://192.168.1.1",
1437
+    "url": "http://example.com.br",
1438 1438
     "ignoreProtocol": false,
1439 1439
     "ignoreSubdomain": false,
1440 1440
     "ignorePath": true,
1441 1441
     "ignorePort": false,
1442
-    "expected": "http://192.168.1.1"
1442
+    "expected": "http://example.com.br"
1443 1443
 }, {
1444
-    "url": "http://192.168.1.1",
1444
+    "url": "http://example.com.br",
1445 1445
     "ignoreProtocol": false,
1446 1446
     "ignoreSubdomain": false,
1447 1447
     "ignorePath": false,
1448 1448
     "ignorePort": true,
1449
-    "expected": "http://192.168.1.1"
1449
+    "expected": "http://example.com.br"
1450 1450
 }, {
1451
-    "url": "http://192.168.1.1",
1451
+    "url": "http://example.com.br",
1452 1452
     "ignoreProtocol": false,
1453 1453
     "ignoreSubdomain": false,
1454 1454
     "ignorePath": false,
1455 1455
     "ignorePort": false,
1456
-    "expected": "http://192.168.1.1"
1456
+    "expected": "http://example.com.br"
1457 1457
 }, {
1458
-    "url": "http://192.168.1.1:8080",
1458
+    "url": "http://example.com.br:8080",
1459 1459
     "ignoreProtocol": true,
1460 1460
     "ignoreSubdomain": true,
1461 1461
     "ignorePath": true,
1462 1462
     "ignorePort": true,
1463
-    "expected": "192.168.1.1"
1463
+    "expected": "example.com.br"
1464 1464
 }, {
1465
-    "url": "http://192.168.1.1:8080",
1465
+    "url": "http://example.com.br:8080",
1466 1466
     "ignoreProtocol": true,
1467 1467
     "ignoreSubdomain": true,
1468 1468
     "ignorePath": true,
1469 1469
     "ignorePort": false,
1470
-    "expected": "192.168.1.1:8080"
1470
+    "expected": "example.com.br:8080"
1471 1471
 }, {
1472
-    "url": "http://192.168.1.1:8080",
1472
+    "url": "http://example.com.br:8080",
1473 1473
     "ignoreProtocol": true,
1474 1474
     "ignoreSubdomain": true,
1475 1475
     "ignorePath": false,
1476 1476
     "ignorePort": true,
1477
-    "expected": "192.168.1.1"
1477
+    "expected": "example.com.br"
1478 1478
 }, {
1479
-    "url": "http://192.168.1.1:8080",
1479
+    "url": "http://example.com.br:8080",
1480 1480
     "ignoreProtocol": true,
1481 1481
     "ignoreSubdomain": true,
1482 1482
     "ignorePath": false,
1483 1483
     "ignorePort": false,
1484
-    "expected": "192.168.1.1:8080"
1484
+    "expected": "example.com.br:8080"
1485 1485
 }, {
1486
-    "url": "http://192.168.1.1:8080",
1486
+    "url": "http://example.com.br:8080",
1487 1487
     "ignoreProtocol": true,
1488 1488
     "ignoreSubdomain": false,
1489 1489
     "ignorePath": true,
1490 1490
     "ignorePort": true,
1491
-    "expected": "192.168.1.1"
1491
+    "expected": "example.com.br"
1492 1492
 }, {
1493
-    "url": "http://192.168.1.1:8080",
1493
+    "url": "http://example.com.br:8080",
1494 1494
     "ignoreProtocol": true,
1495 1495
     "ignoreSubdomain": false,
1496 1496
     "ignorePath": true,
1497 1497
     "ignorePort": false,
1498
-    "expected": "192.168.1.1:8080"
1498
+    "expected": "example.com.br:8080"
1499 1499
 }, {
1500
-    "url": "http://192.168.1.1:8080",
1500
+    "url": "http://example.com.br:8080",
1501 1501
     "ignoreProtocol": true,
1502 1502
     "ignoreSubdomain": false,
1503 1503
     "ignorePath": false,
1504 1504
     "ignorePort": true,
1505
-    "expected": "192.168.1.1"
1505
+    "expected": "example.com.br"
1506 1506
 }, {
1507
-    "url": "http://192.168.1.1:8080",
1507
+    "url": "http://example.com.br:8080",
1508 1508
     "ignoreProtocol": true,
1509 1509
     "ignoreSubdomain": false,
1510 1510
     "ignorePath": false,
1511 1511
     "ignorePort": false,
1512
-    "expected": "192.168.1.1:8080"
1512
+    "expected": "example.com.br:8080"
1513 1513
 }, {
1514
-    "url": "http://192.168.1.1:8080",
1514
+    "url": "http://example.com.br:8080",
1515 1515
     "ignoreProtocol": false,
1516 1516
     "ignoreSubdomain": true,
1517 1517
     "ignorePath": true,
1518 1518
     "ignorePort": true,
1519
-    "expected": "http://192.168.1.1"
1519
+    "expected": "http://example.com.br"
1520 1520
 }, {
1521
-    "url": "http://192.168.1.1:8080",
1521
+    "url": "http://example.com.br:8080",
1522 1522
     "ignoreProtocol": false,
1523 1523
     "ignoreSubdomain": true,
1524 1524
     "ignorePath": true,
1525 1525
     "ignorePort": false,
1526
-    "expected": "http://192.168.1.1:8080"
1526
+    "expected": "http://example.com.br:8080"
1527 1527
 }, {
1528
-    "url": "http://192.168.1.1:8080",
1528
+    "url": "http://example.com.br:8080",
1529 1529
     "ignoreProtocol": false,
1530 1530
     "ignoreSubdomain": true,
1531 1531
     "ignorePath": false,
1532 1532
     "ignorePort": true,
1533
-    "expected": "http://192.168.1.1"
1533
+    "expected": "http://example.com.br"
1534 1534
 }, {
1535
-    "url": "http://192.168.1.1:8080",
1535
+    "url": "http://example.com.br:8080",
1536 1536
     "ignoreProtocol": false,
1537 1537
     "ignoreSubdomain": true,
1538 1538
     "ignorePath": false,
1539 1539
     "ignorePort": false,
1540
-    "expected": "http://192.168.1.1:8080"
1540
+    "expected": "http://example.com.br:8080"
1541 1541
 }, {
1542
-    "url": "http://192.168.1.1:8080",
1542
+    "url": "http://example.com.br:8080",
1543 1543
     "ignoreProtocol": false,
1544 1544
     "ignoreSubdomain": false,
1545 1545
     "ignorePath": true,
1546 1546
     "ignorePort": true,
1547
-    "expected": "http://192.168.1.1"
1547
+    "expected": "http://example.com.br"
1548 1548
 }, {
1549
-    "url": "http://192.168.1.1:8080",
1549
+    "url": "http://example.com.br:8080",
1550 1550
     "ignoreProtocol": false,
1551 1551
     "ignoreSubdomain": false,
1552 1552
     "ignorePath": true,
1553 1553
     "ignorePort": false,
1554
-    "expected": "http://192.168.1.1:8080"
1554
+    "expected": "http://example.com.br:8080"
1555 1555
 }, {
1556
-    "url": "http://192.168.1.1:8080",
1556
+    "url": "http://example.com.br:8080",
1557 1557
     "ignoreProtocol": false,
1558 1558
     "ignoreSubdomain": false,
1559 1559
     "ignorePath": false,
1560 1560
     "ignorePort": true,
1561
-    "expected": "http://192.168.1.1"
1561
+    "expected": "http://example.com.br"
1562 1562
 }, {
1563
-    "url": "http://192.168.1.1:8080",
1563
+    "url": "http://example.com.br:8080",
1564 1564
     "ignoreProtocol": false,
1565 1565
     "ignoreSubdomain": false,
1566 1566
     "ignorePath": false,
1567 1567
     "ignorePort": false,
1568
-    "expected": "http://192.168.1.1:8080"
1568
+    "expected": "http://example.com.br:8080"
1569 1569
 }, {
1570
-    "url": "https://192.168.1.1:8080",
1570
+    "url": "https://example.com.br:8080",
1571 1571
     "ignoreProtocol": true,
1572 1572
     "ignoreSubdomain": true,
1573 1573
     "ignorePath": true,
1574 1574
     "ignorePort": true,
1575
-    "expected": "192.168.1.1"
1575
+    "expected": "example.com.br"
1576 1576
 }, {
1577
-    "url": "https://192.168.1.1:8080",
1577
+    "url": "https://example.com.br:8080",
1578 1578
     "ignoreProtocol": true,
1579 1579
     "ignoreSubdomain": true,
1580 1580
     "ignorePath": true,
1581 1581
     "ignorePort": false,
1582
-    "expected": "192.168.1.1:8080"
1582
+    "expected": "example.com.br:8080"
1583 1583
 }, {
1584
-    "url": "https://192.168.1.1:8080",
1584
+    "url": "https://example.com.br:8080",
1585 1585
     "ignoreProtocol": true,
1586 1586
     "ignoreSubdomain": true,
1587 1587
     "ignorePath": false,
1588 1588
     "ignorePort": true,
1589
-    "expected": "192.168.1.1"
1589
+    "expected": "example.com.br"
1590 1590
 }, {
1591
-    "url": "https://192.168.1.1:8080",
1591
+    "url": "https://example.com.br:8080",
1592 1592
     "ignoreProtocol": true,
1593 1593
     "ignoreSubdomain": true,
1594 1594
     "ignorePath": false,
1595 1595
     "ignorePort": false,
1596
-    "expected": "192.168.1.1:8080"
1596
+    "expected": "example.com.br:8080"
1597 1597
 }, {
1598
-    "url": "https://192.168.1.1:8080",
1598
+    "url": "https://example.com.br:8080",
1599 1599
     "ignoreProtocol": true,
1600 1600
     "ignoreSubdomain": false,
1601 1601
     "ignorePath": true,
1602 1602
     "ignorePort": true,
1603
-    "expected": "192.168.1.1"
1603
+    "expected": "example.com.br"
1604 1604
 }, {
1605
-    "url": "https://192.168.1.1:8080",
1605
+    "url": "https://example.com.br:8080",
1606 1606
     "ignoreProtocol": true,
1607 1607
     "ignoreSubdomain": false,
1608 1608
     "ignorePath": true,
1609 1609
     "ignorePort": false,
1610
-    "expected": "192.168.1.1:8080"
1610
+    "expected": "example.com.br:8080"
1611 1611
 }, {
1612
-    "url": "https://192.168.1.1:8080",
1612
+    "url": "https://example.com.br:8080",
1613 1613
     "ignoreProtocol": true,
1614 1614
     "ignoreSubdomain": false,
1615 1615
     "ignorePath": false,
1616 1616
     "ignorePort": true,
1617
-    "expected": "192.168.1.1"
1617
+    "expected": "example.com.br"
1618 1618
 }, {
1619
-    "url": "https://192.168.1.1:8080",
1619
+    "url": "https://example.com.br:8080",
1620 1620
     "ignoreProtocol": true,
1621 1621
     "ignoreSubdomain": false,
1622 1622
     "ignorePath": false,
1623 1623
     "ignorePort": false,
1624
-    "expected": "192.168.1.1:8080"
1624
+    "expected": "example.com.br:8080"
1625 1625
 }, {
1626
-    "url": "https://192.168.1.1:8080",
1626
+    "url": "https://example.com.br:8080",
1627 1627
     "ignoreProtocol": false,
1628 1628
     "ignoreSubdomain": true,
1629 1629
     "ignorePath": true,
1630 1630
     "ignorePort": true,
1631
-    "expected": "https://192.168.1.1"
1631
+    "expected": "https://example.com.br"
1632 1632
 }, {
1633
-    "url": "https://192.168.1.1:8080",
1633
+    "url": "https://example.com.br:8080",
1634 1634
     "ignoreProtocol": false,
1635 1635
     "ignoreSubdomain": true,
1636 1636
     "ignorePath": true,
1637 1637
     "ignorePort": false,
1638
-    "expected": "https://192.168.1.1:8080"
1638
+    "expected": "https://example.com.br:8080"
1639 1639
 }, {
1640
-    "url": "https://192.168.1.1:8080",
1640
+    "url": "https://example.com.br:8080",
1641 1641
     "ignoreProtocol": false,
1642 1642
     "ignoreSubdomain": true,
1643 1643
     "ignorePath": false,
1644 1644
     "ignorePort": true,
1645
-    "expected": "https://192.168.1.1"
1645
+    "expected": "https://example.com.br"
1646 1646
 }, {
1647
-    "url": "https://192.168.1.1:8080",
1647
+    "url": "https://example.com.br:8080",
1648 1648
     "ignoreProtocol": false,
1649 1649
     "ignoreSubdomain": true,
1650 1650
     "ignorePath": false,
1651 1651
     "ignorePort": false,
1652
-    "expected": "https://192.168.1.1:8080"
1652
+    "expected": "https://example.com.br:8080"
1653 1653
 }, {
1654
-    "url": "https://192.168.1.1:8080",
1654
+    "url": "https://example.com.br:8080",
1655 1655
     "ignoreProtocol": false,
1656 1656
     "ignoreSubdomain": false,
1657 1657
     "ignorePath": true,
1658 1658
     "ignorePort": true,
1659
-    "expected": "https://192.168.1.1"
1659
+    "expected": "https://example.com.br"
1660 1660
 }, {
1661
-    "url": "https://192.168.1.1:8080",
1661
+    "url": "https://example.com.br:8080",
1662 1662
     "ignoreProtocol": false,
1663 1663
     "ignoreSubdomain": false,
1664 1664
     "ignorePath": true,
1665 1665
     "ignorePort": false,
1666
-    "expected": "https://192.168.1.1:8080"
1666
+    "expected": "https://example.com.br:8080"
1667 1667
 }, {
1668
-    "url": "https://192.168.1.1:8080",
1668
+    "url": "https://example.com.br:8080",
1669 1669
     "ignoreProtocol": false,
1670 1670
     "ignoreSubdomain": false,
1671 1671
     "ignorePath": false,
1672 1672
     "ignorePort": true,
1673
-    "expected": "https://192.168.1.1"
1673
+    "expected": "https://example.com.br"
1674 1674
 }, {
1675
-    "url": "https://192.168.1.1:8080",
1675
+    "url": "https://example.com.br:8080",
1676 1676
     "ignoreProtocol": false,
1677 1677
     "ignoreSubdomain": false,
1678 1678
     "ignorePath": false,
1679 1679
     "ignorePort": false,
1680
-    "expected": "https://192.168.1.1:8080"
1680
+    "expected": "https://example.com.br:8080"
1681 1681
 }, {
1682
-    "url": "https://192.168.1.1.com",
1682
+    "url": "https://example.com.br",
1683 1683
     "ignoreProtocol": true,
1684 1684
     "ignoreSubdomain": true,
1685 1685
     "ignorePath": true,
1686 1686
     "ignorePort": true,
1687
-    "expected": "1.com"
1687
+    "expected": "example.com.br"
1688 1688
 }, {
1689
-    "url": "https://192.168.1.1.com",
1689
+    "url": "https://example.com.br",
1690 1690
     "ignoreProtocol": true,
1691 1691
     "ignoreSubdomain": true,
1692 1692
     "ignorePath": true,
1693 1693
     "ignorePort": false,
1694
-    "expected": "1.com"
1694
+    "expected": "example.com.br"
1695 1695
 }, {
1696
-    "url": "https://192.168.1.1.com",
1696
+    "url": "https://example.com.br",
1697 1697
     "ignoreProtocol": true,
1698 1698
     "ignoreSubdomain": true,
1699 1699
     "ignorePath": false,
1700 1700
     "ignorePort": true,
1701
-    "expected": "1.com"
1701
+    "expected": "example.com.br"
1702 1702
 }, {
1703
-    "url": "https://192.168.1.1.com",
1703
+    "url": "https://example.com.br",
1704 1704
     "ignoreProtocol": true,
1705 1705
     "ignoreSubdomain": true,
1706 1706
     "ignorePath": false,
1707 1707
     "ignorePort": false,
1708
-    "expected": "1.com"
1708
+    "expected": "example.com.br"
1709 1709
 }, {
1710
-    "url": "https://192.168.1.1.com",
1710
+    "url": "https://example.com.br",
1711 1711
     "ignoreProtocol": true,
1712 1712
     "ignoreSubdomain": false,
1713 1713
     "ignorePath": true,
1714 1714
     "ignorePort": true,
1715
-    "expected": "192.168.1.1.com"
1715
+    "expected": "example.com.br"
1716 1716
 }, {
1717
-    "url": "https://192.168.1.1.com",
1717
+    "url": "https://example.com.br",
1718 1718
     "ignoreProtocol": true,
1719 1719
     "ignoreSubdomain": false,
1720 1720
     "ignorePath": true,
1721 1721
     "ignorePort": false,
1722
-    "expected": "192.168.1.1.com"
1722
+    "expected": "example.com.br"
1723 1723
 }, {
1724
-    "url": "https://192.168.1.1.com",
1724
+    "url": "https://example.com.br",
1725 1725
     "ignoreProtocol": true,
1726 1726
     "ignoreSubdomain": false,
1727 1727
     "ignorePath": false,
1728 1728
     "ignorePort": true,
1729
-    "expected": "192.168.1.1.com"
1729
+    "expected": "example.com.br"
1730 1730
 }, {
1731
-    "url": "https://192.168.1.1.com",
1731
+    "url": "https://example.com.br",
1732 1732
     "ignoreProtocol": true,
1733 1733
     "ignoreSubdomain": false,
1734 1734
     "ignorePath": false,
1735 1735
     "ignorePort": false,
1736
-    "expected": "192.168.1.1.com"
1736
+    "expected": "example.com.br"
1737 1737
 }, {
1738
-    "url": "https://192.168.1.1.com",
1738
+    "url": "https://example.com.br",
1739 1739
     "ignoreProtocol": false,
1740 1740
     "ignoreSubdomain": true,
1741 1741
     "ignorePath": true,
1742 1742
     "ignorePort": true,
1743
-    "expected": "https://1.com"
1743
+    "expected": "https://example.com.br"
1744 1744
 }, {
1745
-    "url": "https://192.168.1.1.com",
1745
+    "url": "https://example.com.br",
1746 1746
     "ignoreProtocol": false,
1747 1747
     "ignoreSubdomain": true,
1748 1748
     "ignorePath": true,
1749 1749
     "ignorePort": false,
1750
-    "expected": "https://1.com"
1750
+    "expected": "https://example.com.br"
1751 1751
 }, {
1752
-    "url": "https://192.168.1.1.com",
1752
+    "url": "https://example.com.br",
1753 1753
     "ignoreProtocol": false,
1754 1754
     "ignoreSubdomain": true,
1755 1755
     "ignorePath": false,
1756 1756
     "ignorePort": true,
1757
-    "expected": "https://1.com"
1757
+    "expected": "https://example.com.br"
1758 1758
 }, {
1759
-    "url": "https://192.168.1.1.com",
1759
+    "url": "https://example.com.br",
1760 1760
     "ignoreProtocol": false,
1761 1761
     "ignoreSubdomain": true,
1762 1762
     "ignorePath": false,
1763 1763
     "ignorePort": false,
1764
-    "expected": "https://1.com"
1764
+    "expected": "https://example.com.br"
1765 1765
 }, {
1766
-    "url": "https://192.168.1.1.com",
1766
+    "url": "https://example.com.br",
1767 1767
     "ignoreProtocol": false,
1768 1768
     "ignoreSubdomain": false,
1769 1769
     "ignorePath": true,
1770 1770
     "ignorePort": true,
1771
-    "expected": "https://192.168.1.1.com"
1771
+    "expected": "https://example.com.br"
1772 1772
 }, {
1773
-    "url": "https://192.168.1.1.com",
1773
+    "url": "https://example.com.br",
1774 1774
     "ignoreProtocol": false,
1775 1775
     "ignoreSubdomain": false,
1776 1776
     "ignorePath": true,
1777 1777
     "ignorePort": false,
1778
-    "expected": "https://192.168.1.1.com"
1778
+    "expected": "https://example.com.br"
1779 1779
 }, {
1780
-    "url": "https://192.168.1.1.com",
1780
+    "url": "https://example.com.br",
1781 1781
     "ignoreProtocol": false,
1782 1782
     "ignoreSubdomain": false,
1783 1783
     "ignorePath": false,
1784 1784
     "ignorePort": true,
1785
-    "expected": "https://192.168.1.1.com"
1785
+    "expected": "https://example.com.br"
1786 1786
 }, {
1787
-    "url": "https://192.168.1.1.com",
1787
+    "url": "https://example.com.br",
1788 1788
     "ignoreProtocol": false,
1789 1789
     "ignoreSubdomain": false,
1790 1790
     "ignorePath": false,
1791 1791
     "ignorePort": false,
1792
-    "expected": "https://192.168.1.1.com"
1792
+    "expected": "https://example.com.br"
1793 1793
 }, {
1794
-    "url": "http://192.168.1.1/page/login",
1794
+    "url": "http://subdomain.example.com.br",
1795 1795
     "ignoreProtocol": true,
1796 1796
     "ignoreSubdomain": true,
1797 1797
     "ignorePath": true,
1798 1798
     "ignorePort": true,
1799
-    "expected": "192.168.1.1"
1799
+    "expected": "example.com.br"
1800 1800
 }, {
1801
-    "url": "http://192.168.1.1/page/login",
1801
+    "url": "http://subdomain.example.com.br",
1802 1802
     "ignoreProtocol": true,
1803 1803
     "ignoreSubdomain": true,
1804 1804
     "ignorePath": true,
1805 1805
     "ignorePort": false,
1806
-    "expected": "192.168.1.1"
1806
+    "expected": "example.com.br"
1807 1807
 }, {
1808
-    "url": "http://192.168.1.1/page/login",
1808
+    "url": "http://subdomain.example.com.br",
1809 1809
     "ignoreProtocol": true,
1810 1810
     "ignoreSubdomain": true,
1811 1811
     "ignorePath": false,
1812 1812
     "ignorePort": true,
1813
-    "expected": "192.168.1.1/page/login"
1813
+    "expected": "example.com.br"
1814 1814
 }, {
1815
-    "url": "http://192.168.1.1/page/login",
1815
+    "url": "http://subdomain.example.com.br",
1816 1816
     "ignoreProtocol": true,
1817 1817
     "ignoreSubdomain": true,
1818 1818
     "ignorePath": false,
1819 1819
     "ignorePort": false,
1820
-    "expected": "192.168.1.1/page/login"
1820
+    "expected": "example.com.br"
1821 1821
 }, {
1822
-    "url": "http://192.168.1.1/page/login",
1822
+    "url": "http://subdomain.example.com.br",
1823 1823
     "ignoreProtocol": true,
1824 1824
     "ignoreSubdomain": false,
1825 1825
     "ignorePath": true,
1826 1826
     "ignorePort": true,
1827
-    "expected": "192.168.1.1"
1827
+    "expected": "subdomain.example.com.br"
1828 1828
 }, {
1829
-    "url": "http://192.168.1.1/page/login",
1829
+    "url": "http://subdomain.example.com.br",
1830 1830
     "ignoreProtocol": true,
1831 1831
     "ignoreSubdomain": false,
1832 1832
     "ignorePath": true,
1833 1833
     "ignorePort": false,
1834
-    "expected": "192.168.1.1"
1834
+    "expected": "subdomain.example.com.br"
1835 1835
 }, {
1836
-    "url": "http://192.168.1.1/page/login",
1836
+    "url": "http://subdomain.example.com.br",
1837 1837
     "ignoreProtocol": true,
1838 1838
     "ignoreSubdomain": false,
1839 1839
     "ignorePath": false,
1840 1840
     "ignorePort": true,
1841
-    "expected": "192.168.1.1/page/login"
1841
+    "expected": "subdomain.example.com.br"
1842 1842
 }, {
1843
-    "url": "http://192.168.1.1/page/login",
1843
+    "url": "http://subdomain.example.com.br",
1844 1844
     "ignoreProtocol": true,
1845 1845
     "ignoreSubdomain": false,
1846 1846
     "ignorePath": false,
1847 1847
     "ignorePort": false,
1848
-    "expected": "192.168.1.1/page/login"
1848
+    "expected": "subdomain.example.com.br"
1849 1849
 }, {
1850
-    "url": "http://192.168.1.1/page/login",
1850
+    "url": "http://subdomain.example.com.br",
1851 1851
     "ignoreProtocol": false,
1852 1852
     "ignoreSubdomain": true,
1853 1853
     "ignorePath": true,
1854 1854
     "ignorePort": true,
1855
-    "expected": "http://192.168.1.1"
1855
+    "expected": "http://example.com.br"
1856 1856
 }, {
1857
-    "url": "http://192.168.1.1/page/login",
1857
+    "url": "http://subdomain.example.com.br",
1858 1858
     "ignoreProtocol": false,
1859 1859
     "ignoreSubdomain": true,
1860 1860
     "ignorePath": true,
1861 1861
     "ignorePort": false,
1862
-    "expected": "http://192.168.1.1"
1862
+    "expected": "http://example.com.br"
1863 1863
 }, {
1864
-    "url": "http://192.168.1.1/page/login",
1864
+    "url": "http://subdomain.example.com.br",
1865 1865
     "ignoreProtocol": false,
1866 1866
     "ignoreSubdomain": true,
1867 1867
     "ignorePath": false,
1868 1868
     "ignorePort": true,
1869
-    "expected": "http://192.168.1.1/page/login"
1869
+    "expected": "http://example.com.br"
1870 1870
 }, {
1871
-    "url": "http://192.168.1.1/page/login",
1871
+    "url": "http://subdomain.example.com.br",
1872 1872
     "ignoreProtocol": false,
1873 1873
     "ignoreSubdomain": true,
1874 1874
     "ignorePath": false,
1875 1875
     "ignorePort": false,
1876
-    "expected": "http://192.168.1.1/page/login"
1876
+    "expected": "http://example.com.br"
1877 1877
 }, {
1878
-    "url": "http://192.168.1.1/page/login",
1878
+    "url": "http://subdomain.example.com.br",
1879 1879
     "ignoreProtocol": false,
1880 1880
     "ignoreSubdomain": false,
1881 1881
     "ignorePath": true,
1882 1882
     "ignorePort": true,
1883
-    "expected": "http://192.168.1.1"
1883
+    "expected": "http://subdomain.example.com.br"
1884 1884
 }, {
1885
-    "url": "http://192.168.1.1/page/login",
1885
+    "url": "http://subdomain.example.com.br",
1886 1886
     "ignoreProtocol": false,
1887 1887
     "ignoreSubdomain": false,
1888 1888
     "ignorePath": true,
1889 1889
     "ignorePort": false,
1890
-    "expected": "http://192.168.1.1"
1890
+    "expected": "http://subdomain.example.com.br"
1891 1891
 }, {
1892
-    "url": "http://192.168.1.1/page/login",
1892
+    "url": "http://subdomain.example.com.br",
1893 1893
     "ignoreProtocol": false,
1894 1894
     "ignoreSubdomain": false,
1895 1895
     "ignorePath": false,
1896 1896
     "ignorePort": true,
1897
-    "expected": "http://192.168.1.1/page/login"
1897
+    "expected": "http://subdomain.example.com.br"
1898 1898
 }, {
1899
-    "url": "http://192.168.1.1/page/login",
1899
+    "url": "http://subdomain.example.com.br",
1900 1900
     "ignoreProtocol": false,
1901 1901
     "ignoreSubdomain": false,
1902 1902
     "ignorePath": false,
1903 1903
     "ignorePort": false,
1904
-    "expected": "http://192.168.1.1/page/login"
1904
+    "expected": "http://subdomain.example.com.br"
1905 1905
 }, {
1906
-    "url": "http://192.168.1.1:8080/page/login",
1906
+    "url": "http://subdomain.example.com.br:8080",
1907 1907
     "ignoreProtocol": true,
1908 1908
     "ignoreSubdomain": true,
1909 1909
     "ignorePath": true,
1910 1910
     "ignorePort": true,
1911
-    "expected": "192.168.1.1"
1911
+    "expected": "example.com.br"
1912 1912
 }, {
1913
-    "url": "http://192.168.1.1:8080/page/login",
1913
+    "url": "http://subdomain.example.com.br:8080",
1914 1914
     "ignoreProtocol": true,
1915 1915
     "ignoreSubdomain": true,
1916 1916
     "ignorePath": true,
1917 1917
     "ignorePort": false,
1918
-    "expected": "192.168.1.1:8080"
1918
+    "expected": "example.com.br:8080"
1919 1919
 }, {
1920
-    "url": "http://192.168.1.1:8080/page/login",
1920
+    "url": "http://subdomain.example.com.br:8080",
1921 1921
     "ignoreProtocol": true,
1922 1922
     "ignoreSubdomain": true,
1923 1923
     "ignorePath": false,
1924 1924
     "ignorePort": true,
1925
-    "expected": "192.168.1.1/page/login"
1925
+    "expected": "example.com.br"
1926 1926
 }, {
1927
-    "url": "http://192.168.1.1:8080/page/login",
1927
+    "url": "http://subdomain.example.com.br:8080",
1928 1928
     "ignoreProtocol": true,
1929 1929
     "ignoreSubdomain": true,
1930 1930
     "ignorePath": false,
1931 1931
     "ignorePort": false,
1932
-    "expected": "192.168.1.1:8080/page/login"
1932
+    "expected": "example.com.br:8080"
1933 1933
 }, {
1934
-    "url": "http://192.168.1.1:8080/page/login",
1934
+    "url": "http://subdomain.example.com.br:8080",
1935 1935
     "ignoreProtocol": true,
1936 1936
     "ignoreSubdomain": false,
1937 1937
     "ignorePath": true,
1938 1938
     "ignorePort": true,
1939
-    "expected": "192.168.1.1"
1939
+    "expected": "subdomain.example.com.br"
1940 1940
 }, {
1941
-    "url": "http://192.168.1.1:8080/page/login",
1941
+    "url": "http://subdomain.example.com.br:8080",
1942 1942
     "ignoreProtocol": true,
1943 1943
     "ignoreSubdomain": false,
1944 1944
     "ignorePath": true,
1945 1945
     "ignorePort": false,
1946
-    "expected": "192.168.1.1:8080"
1946
+    "expected": "subdomain.example.com.br:8080"
1947 1947
 }, {
1948
-    "url": "http://192.168.1.1:8080/page/login",
1948
+    "url": "http://subdomain.example.com.br:8080",
1949 1949
     "ignoreProtocol": true,
1950 1950
     "ignoreSubdomain": false,
1951 1951
     "ignorePath": false,
1952 1952
     "ignorePort": true,
1953
-    "expected": "192.168.1.1/page/login"
1953
+    "expected": "subdomain.example.com.br"
1954 1954
 }, {
1955
-    "url": "http://192.168.1.1:8080/page/login",
1955
+    "url": "http://subdomain.example.com.br:8080",
1956 1956
     "ignoreProtocol": true,
1957 1957
     "ignoreSubdomain": false,
1958 1958
     "ignorePath": false,
1959 1959
     "ignorePort": false,
1960
-    "expected": "192.168.1.1:8080/page/login"
1960
+    "expected": "subdomain.example.com.br:8080"
1961 1961
 }, {
1962
-    "url": "http://192.168.1.1:8080/page/login",
1962
+    "url": "http://subdomain.example.com.br:8080",
1963 1963
     "ignoreProtocol": false,
1964 1964
     "ignoreSubdomain": true,
1965 1965
     "ignorePath": true,
1966 1966
     "ignorePort": true,
1967
-    "expected": "http://192.168.1.1"
1967
+    "expected": "http://example.com.br"
1968 1968
 }, {
1969
-    "url": "http://192.168.1.1:8080/page/login",
1969
+    "url": "http://subdomain.example.com.br:8080",
1970 1970
     "ignoreProtocol": false,
1971 1971
     "ignoreSubdomain": true,
1972 1972
     "ignorePath": true,
1973 1973
     "ignorePort": false,
1974
-    "expected": "http://192.168.1.1:8080"
1974
+    "expected": "http://example.com.br:8080"
1975 1975
 }, {
1976
-    "url": "http://192.168.1.1:8080/page/login",
1976
+    "url": "http://subdomain.example.com.br:8080",
1977 1977
     "ignoreProtocol": false,
1978 1978
     "ignoreSubdomain": true,
1979 1979
     "ignorePath": false,
1980 1980
     "ignorePort": true,
1981
-    "expected": "http://192.168.1.1/page/login"
1981
+    "expected": "http://example.com.br"
1982 1982
 }, {
1983
-    "url": "http://192.168.1.1:8080/page/login",
1983
+    "url": "http://subdomain.example.com.br:8080",
1984 1984
     "ignoreProtocol": false,
1985 1985
     "ignoreSubdomain": true,
1986 1986
     "ignorePath": false,
1987 1987
     "ignorePort": false,
1988
-    "expected": "http://192.168.1.1:8080/page/login"
1988
+    "expected": "http://example.com.br:8080"
1989 1989
 }, {
1990
-    "url": "http://192.168.1.1:8080/page/login",
1990
+    "url": "http://subdomain.example.com.br:8080",
1991 1991
     "ignoreProtocol": false,
1992 1992
     "ignoreSubdomain": false,
1993 1993
     "ignorePath": true,
1994 1994
     "ignorePort": true,
1995
-    "expected": "http://192.168.1.1"
1995
+    "expected": "http://subdomain.example.com.br"
1996 1996
 }, {
1997
-    "url": "http://192.168.1.1:8080/page/login",
1997
+    "url": "http://subdomain.example.com.br:8080",
1998 1998
     "ignoreProtocol": false,
1999 1999
     "ignoreSubdomain": false,
2000 2000
     "ignorePath": true,
2001 2001
     "ignorePort": false,
2002
-    "expected": "http://192.168.1.1:8080"
2002
+    "expected": "http://subdomain.example.com.br:8080"
2003 2003
 }, {
2004
-    "url": "http://192.168.1.1:8080/page/login",
2004
+    "url": "http://subdomain.example.com.br:8080",
2005 2005
     "ignoreProtocol": false,
2006 2006
     "ignoreSubdomain": false,
2007 2007
     "ignorePath": false,
2008 2008
     "ignorePort": true,
2009
-    "expected": "http://192.168.1.1/page/login"
2009
+    "expected": "http://subdomain.example.com.br"
2010 2010
 }, {
2011
-    "url": "http://192.168.1.1:8080/page/login",
2011
+    "url": "http://subdomain.example.com.br:8080",
2012 2012
     "ignoreProtocol": false,
2013 2013
     "ignoreSubdomain": false,
2014 2014
     "ignorePath": false,
2015 2015
     "ignorePort": false,
2016
-    "expected": "http://192.168.1.1:8080/page/login"
2016
+    "expected": "http://subdomain.example.com.br:8080"
2017 2017
 }, {
2018
-    "url": "https://192.168.1.1:8080/page/login",
2018
+    "url": "https://subdomain.example.com.br:8080",
2019 2019
     "ignoreProtocol": true,
2020 2020
     "ignoreSubdomain": true,
2021 2021
     "ignorePath": true,
2022 2022
     "ignorePort": true,
2023
-    "expected": "192.168.1.1"
2023
+    "expected": "example.com.br"
2024 2024
 }, {
2025
-    "url": "https://192.168.1.1:8080/page/login",
2025
+    "url": "https://subdomain.example.com.br:8080",
2026 2026
     "ignoreProtocol": true,
2027 2027
     "ignoreSubdomain": true,
2028 2028
     "ignorePath": true,
2029 2029
     "ignorePort": false,
2030
-    "expected": "192.168.1.1:8080"
2030
+    "expected": "example.com.br:8080"
2031 2031
 }, {
2032
-    "url": "https://192.168.1.1:8080/page/login",
2032
+    "url": "https://subdomain.example.com.br:8080",
2033 2033
     "ignoreProtocol": true,
2034 2034
     "ignoreSubdomain": true,
2035 2035
     "ignorePath": false,
2036 2036
     "ignorePort": true,
2037
-    "expected": "192.168.1.1/page/login"
2037
+    "expected": "example.com.br"
2038 2038
 }, {
2039
-    "url": "https://192.168.1.1:8080/page/login",
2039
+    "url": "https://subdomain.example.com.br:8080",
2040 2040
     "ignoreProtocol": true,
2041 2041
     "ignoreSubdomain": true,
2042 2042
     "ignorePath": false,
2043 2043
     "ignorePort": false,
2044
-    "expected": "192.168.1.1:8080/page/login"
2044
+    "expected": "example.com.br:8080"
2045 2045
 }, {
2046
-    "url": "https://192.168.1.1:8080/page/login",
2046
+    "url": "https://subdomain.example.com.br:8080",
2047 2047
     "ignoreProtocol": true,
2048 2048
     "ignoreSubdomain": false,
2049 2049
     "ignorePath": true,
2050 2050
     "ignorePort": true,
2051
-    "expected": "192.168.1.1"
2051
+    "expected": "subdomain.example.com.br"
2052 2052
 }, {
2053
-    "url": "https://192.168.1.1:8080/page/login",
2053
+    "url": "https://subdomain.example.com.br:8080",
2054 2054
     "ignoreProtocol": true,
2055 2055
     "ignoreSubdomain": false,
2056 2056
     "ignorePath": true,
2057 2057
     "ignorePort": false,
2058
-    "expected": "192.168.1.1:8080"
2058
+    "expected": "subdomain.example.com.br:8080"
2059 2059
 }, {
2060
-    "url": "https://192.168.1.1:8080/page/login",
2060
+    "url": "https://subdomain.example.com.br:8080",
2061 2061
     "ignoreProtocol": true,
2062 2062
     "ignoreSubdomain": false,
2063 2063
     "ignorePath": false,
2064 2064
     "ignorePort": true,
2065
-    "expected": "192.168.1.1/page/login"
2065
+    "expected": "subdomain.example.com.br"
2066 2066
 }, {
2067
-    "url": "https://192.168.1.1:8080/page/login",
2067
+    "url": "https://subdomain.example.com.br:8080",
2068 2068
     "ignoreProtocol": true,
2069 2069
     "ignoreSubdomain": false,
2070 2070
     "ignorePath": false,
2071 2071
     "ignorePort": false,
2072
-    "expected": "192.168.1.1:8080/page/login"
2072
+    "expected": "subdomain.example.com.br:8080"
2073 2073
 }, {
2074
-    "url": "https://192.168.1.1:8080/page/login",
2074
+    "url": "https://subdomain.example.com.br:8080",
2075 2075
     "ignoreProtocol": false,
2076 2076
     "ignoreSubdomain": true,
2077 2077
     "ignorePath": true,
2078 2078
     "ignorePort": true,
2079
-    "expected": "https://192.168.1.1"
2079
+    "expected": "https://example.com.br"
2080 2080
 }, {
2081
-    "url": "https://192.168.1.1:8080/page/login",
2081
+    "url": "https://subdomain.example.com.br:8080",
2082 2082
     "ignoreProtocol": false,
2083 2083
     "ignoreSubdomain": true,
2084 2084
     "ignorePath": true,
2085 2085
     "ignorePort": false,
2086
-    "expected": "https://192.168.1.1:8080"
2086
+    "expected": "https://example.com.br:8080"
2087 2087
 }, {
2088
-    "url": "https://192.168.1.1:8080/page/login",
2088
+    "url": "https://subdomain.example.com.br:8080",
2089 2089
     "ignoreProtocol": false,
2090 2090
     "ignoreSubdomain": true,
2091 2091
     "ignorePath": false,
2092 2092
     "ignorePort": true,
2093
-    "expected": "https://192.168.1.1/page/login"
2093
+    "expected": "https://example.com.br"
2094 2094
 }, {
2095
-    "url": "https://192.168.1.1:8080/page/login",
2095
+    "url": "https://subdomain.example.com.br:8080",
2096 2096
     "ignoreProtocol": false,
2097 2097
     "ignoreSubdomain": true,
2098 2098
     "ignorePath": false,
2099 2099
     "ignorePort": false,
2100
-    "expected": "https://192.168.1.1:8080/page/login"
2100
+    "expected": "https://example.com.br:8080"
2101 2101
 }, {
2102
-    "url": "https://192.168.1.1:8080/page/login",
2102
+    "url": "https://subdomain.example.com.br:8080",
2103 2103
     "ignoreProtocol": false,
2104 2104
     "ignoreSubdomain": false,
2105 2105
     "ignorePath": true,
2106 2106
     "ignorePort": true,
2107
-    "expected": "https://192.168.1.1"
2107
+    "expected": "https://subdomain.example.com.br"
2108 2108
 }, {
2109
-    "url": "https://192.168.1.1:8080/page/login",
2109
+    "url": "https://subdomain.example.com.br:8080",
2110 2110
     "ignoreProtocol": false,
2111 2111
     "ignoreSubdomain": false,
2112 2112
     "ignorePath": true,
2113 2113
     "ignorePort": false,
2114
-    "expected": "https://192.168.1.1:8080"
2114
+    "expected": "https://subdomain.example.com.br:8080"
2115 2115
 }, {
2116
-    "url": "https://192.168.1.1:8080/page/login",
2116
+    "url": "https://subdomain.example.com.br:8080",
2117 2117
     "ignoreProtocol": false,
2118 2118
     "ignoreSubdomain": false,
2119 2119
     "ignorePath": false,
2120 2120
     "ignorePort": true,
2121
-    "expected": "https://192.168.1.1/page/login"
2121
+    "expected": "https://subdomain.example.com.br"
2122 2122
 }, {
2123
-    "url": "https://192.168.1.1:8080/page/login",
2123
+    "url": "https://subdomain.example.com.br:8080",
2124 2124
     "ignoreProtocol": false,
2125 2125
     "ignoreSubdomain": false,
2126 2126
     "ignorePath": false,
2127 2127
     "ignorePort": false,
2128
-    "expected": "https://192.168.1.1:8080/page/login"
2128
+    "expected": "https://subdomain.example.com.br:8080"
2129 2129
 }, {
2130
-    "url": "https://192.168.1.1/page/login",
2130
+    "url": "https://subdomain.example.com.br",
2131 2131
     "ignoreProtocol": true,
2132 2132
     "ignoreSubdomain": true,
2133 2133
     "ignorePath": true,
2134 2134
     "ignorePort": true,
2135
-    "expected": "192.168.1.1"
2135
+    "expected": "example.com.br"
2136 2136
 }, {
2137
-    "url": "https://192.168.1.1/page/login",
2137
+    "url": "https://subdomain.example.com.br",
2138 2138
     "ignoreProtocol": true,
2139 2139
     "ignoreSubdomain": true,
2140 2140
     "ignorePath": true,
2141 2141
     "ignorePort": false,
2142
-    "expected": "192.168.1.1"
2142
+    "expected": "example.com.br"
2143 2143
 }, {
2144
-    "url": "https://192.168.1.1/page/login",
2144
+    "url": "https://subdomain.example.com.br",
2145 2145
     "ignoreProtocol": true,
2146 2146
     "ignoreSubdomain": true,
2147 2147
     "ignorePath": false,
2148 2148
     "ignorePort": true,
2149
-    "expected": "192.168.1.1/page/login"
2149
+    "expected": "example.com.br"
2150 2150
 }, {
2151
-    "url": "https://192.168.1.1/page/login",
2151
+    "url": "https://subdomain.example.com.br",
2152 2152
     "ignoreProtocol": true,
2153 2153
     "ignoreSubdomain": true,
2154 2154
     "ignorePath": false,
2155 2155
     "ignorePort": false,
2156
-    "expected": "192.168.1.1/page/login"
2156
+    "expected": "example.com.br"
2157 2157
 }, {
2158
-    "url": "https://192.168.1.1/page/login",
2158
+    "url": "https://subdomain.example.com.br",
2159 2159
     "ignoreProtocol": true,
2160 2160
     "ignoreSubdomain": false,
2161 2161
     "ignorePath": true,
2162 2162
     "ignorePort": true,
2163
-    "expected": "192.168.1.1"
2163
+    "expected": "subdomain.example.com.br"
2164 2164
 }, {
2165
-    "url": "https://192.168.1.1/page/login",
2165
+    "url": "https://subdomain.example.com.br",
2166 2166
     "ignoreProtocol": true,
2167 2167
     "ignoreSubdomain": false,
2168 2168
     "ignorePath": true,
2169 2169
     "ignorePort": false,
2170
-    "expected": "192.168.1.1"
2170
+    "expected": "subdomain.example.com.br"
2171 2171
 }, {
2172
-    "url": "https://192.168.1.1/page/login",
2172
+    "url": "https://subdomain.example.com.br",
2173 2173
     "ignoreProtocol": true,
2174 2174
     "ignoreSubdomain": false,
2175 2175
     "ignorePath": false,
2176 2176
     "ignorePort": true,
2177
-    "expected": "192.168.1.1/page/login"
2177
+    "expected": "subdomain.example.com.br"
2178 2178
 }, {
2179
-    "url": "https://192.168.1.1/page/login",
2179
+    "url": "https://subdomain.example.com.br",
2180 2180
     "ignoreProtocol": true,
2181 2181
     "ignoreSubdomain": false,
2182 2182
     "ignorePath": false,
2183 2183
     "ignorePort": false,
2184
-    "expected": "192.168.1.1/page/login"
2184
+    "expected": "subdomain.example.com.br"
2185 2185
 }, {
2186
-    "url": "https://192.168.1.1/page/login",
2186
+    "url": "https://subdomain.example.com.br",
2187 2187
     "ignoreProtocol": false,
2188 2188
     "ignoreSubdomain": true,
2189 2189
     "ignorePath": true,
2190 2190
     "ignorePort": true,
2191
-    "expected": "https://192.168.1.1"
2191
+    "expected": "https://example.com.br"
2192 2192
 }, {
2193
-    "url": "https://192.168.1.1/page/login",
2193
+    "url": "https://subdomain.example.com.br",
2194 2194
     "ignoreProtocol": false,
2195 2195
     "ignoreSubdomain": true,
2196 2196
     "ignorePath": true,
2197 2197
     "ignorePort": false,
2198
-    "expected": "https://192.168.1.1"
2198
+    "expected": "https://example.com.br"
2199 2199
 }, {
2200
-    "url": "https://192.168.1.1/page/login",
2200
+    "url": "https://subdomain.example.com.br",
2201 2201
     "ignoreProtocol": false,
2202 2202
     "ignoreSubdomain": true,
2203 2203
     "ignorePath": false,
2204 2204
     "ignorePort": true,
2205
-    "expected": "https://192.168.1.1/page/login"
2205
+    "expected": "https://example.com.br"
2206 2206
 }, {
2207
-    "url": "https://192.168.1.1/page/login",
2207
+    "url": "https://subdomain.example.com.br",
2208 2208
     "ignoreProtocol": false,
2209 2209
     "ignoreSubdomain": true,
2210 2210
     "ignorePath": false,
2211 2211
     "ignorePort": false,
2212
-    "expected": "https://192.168.1.1/page/login"
2212
+    "expected": "https://example.com.br"
2213 2213
 }, {
2214
-    "url": "https://192.168.1.1/page/login",
2214
+    "url": "https://subdomain.example.com.br",
2215 2215
     "ignoreProtocol": false,
2216 2216
     "ignoreSubdomain": false,
2217 2217
     "ignorePath": true,
2218 2218
     "ignorePort": true,
2219
-    "expected": "https://192.168.1.1"
2219
+    "expected": "https://subdomain.example.com.br"
2220 2220
 }, {
2221
-    "url": "https://192.168.1.1/page/login",
2221
+    "url": "https://subdomain.example.com.br",
2222 2222
     "ignoreProtocol": false,
2223 2223
     "ignoreSubdomain": false,
2224 2224
     "ignorePath": true,
2225 2225
     "ignorePort": false,
2226
-    "expected": "https://192.168.1.1"
2226
+    "expected": "https://subdomain.example.com.br"
2227 2227
 }, {
2228
-    "url": "https://192.168.1.1/page/login",
2228
+    "url": "https://subdomain.example.com.br",
2229 2229
     "ignoreProtocol": false,
2230 2230
     "ignoreSubdomain": false,
2231 2231
     "ignorePath": false,
2232 2232
     "ignorePort": true,
2233
-    "expected": "https://192.168.1.1/page/login"
2233
+    "expected": "https://subdomain.example.com.br"
2234 2234
 }, {
2235
-    "url": "https://192.168.1.1/page/login",
2235
+    "url": "https://subdomain.example.com.br",
2236 2236
     "ignoreProtocol": false,
2237 2237
     "ignoreSubdomain": false,
2238 2238
     "ignorePath": false,
2239 2239
     "ignorePort": false,
2240
-    "expected": "https://192.168.1.1/page/login"
2240
+    "expected": "https://subdomain.example.com.br"
2241
+}, {
2242
+    "url": "http://subdomain.example.com.br/page/login",
2243
+    "ignoreProtocol": true,
2244
+    "ignoreSubdomain": true,
2245
+    "ignorePath": true,
2246
+    "ignorePort": true,
2247
+    "expected": "example.com.br"
2248
+}, {
2249
+    "url": "http://subdomain.example.com.br/page/login",
2250
+    "ignoreProtocol": true,
2251
+    "ignoreSubdomain": true,
2252
+    "ignorePath": true,
2253
+    "ignorePort": false,
2254
+    "expected": "example.com.br"
2255
+}, {
2256
+    "url": "http://subdomain.example.com.br/page/login",
2257
+    "ignoreProtocol": true,
2258
+    "ignoreSubdomain": true,
2259
+    "ignorePath": false,
2260
+    "ignorePort": true,
2261
+    "expected": "example.com.br/page/login"
2262
+}, {
2263
+    "url": "http://subdomain.example.com.br/page/login",
2264
+    "ignoreProtocol": true,
2265
+    "ignoreSubdomain": true,
2266
+    "ignorePath": false,
2267
+    "ignorePort": false,
2268
+    "expected": "example.com.br/page/login"
2269
+}, {
2270
+    "url": "http://subdomain.example.com.br/page/login",
2271
+    "ignoreProtocol": true,
2272
+    "ignoreSubdomain": false,
2273
+    "ignorePath": true,
2274
+    "ignorePort": true,
2275
+    "expected": "subdomain.example.com.br"
2276
+}, {
2277
+    "url": "http://subdomain.example.com.br/page/login",
2278
+    "ignoreProtocol": true,
2279
+    "ignoreSubdomain": false,
2280
+    "ignorePath": true,
2281
+    "ignorePort": false,
2282
+    "expected": "subdomain.example.com.br"
2283
+}, {
2284
+    "url": "http://subdomain.example.com.br/page/login",
2285
+    "ignoreProtocol": true,
2286
+    "ignoreSubdomain": false,
2287
+    "ignorePath": false,
2288
+    "ignorePort": true,
2289
+    "expected": "subdomain.example.com.br/page/login"
2290
+}, {
2291
+    "url": "http://subdomain.example.com.br/page/login",
2292
+    "ignoreProtocol": true,
2293
+    "ignoreSubdomain": false,
2294
+    "ignorePath": false,
2295
+    "ignorePort": false,
2296
+    "expected": "subdomain.example.com.br/page/login"
2297
+}, {
2298
+    "url": "http://subdomain.example.com.br/page/login",
2299
+    "ignoreProtocol": false,
2300
+    "ignoreSubdomain": true,
2301
+    "ignorePath": true,
2302
+    "ignorePort": true,
2303
+    "expected": "http://example.com.br"
2304
+}, {
2305
+    "url": "http://subdomain.example.com.br/page/login",
2306
+    "ignoreProtocol": false,
2307
+    "ignoreSubdomain": true,
2308
+    "ignorePath": true,
2309
+    "ignorePort": false,
2310
+    "expected": "http://example.com.br"
2311
+}, {
2312
+    "url": "http://subdomain.example.com.br/page/login",
2313
+    "ignoreProtocol": false,
2314
+    "ignoreSubdomain": true,
2315
+    "ignorePath": false,
2316
+    "ignorePort": true,
2317
+    "expected": "http://example.com.br/page/login"
2318
+}, {
2319
+    "url": "http://subdomain.example.com.br/page/login",
2320
+    "ignoreProtocol": false,
2321
+    "ignoreSubdomain": true,
2322
+    "ignorePath": false,
2323
+    "ignorePort": false,
2324
+    "expected": "http://example.com.br/page/login"
2325
+}, {
2326
+    "url": "http://subdomain.example.com.br/page/login",
2327
+    "ignoreProtocol": false,
2328
+    "ignoreSubdomain": false,
2329
+    "ignorePath": true,
2330
+    "ignorePort": true,
2331
+    "expected": "http://subdomain.example.com.br"
2332
+}, {
2333
+    "url": "http://subdomain.example.com.br/page/login",
2334
+    "ignoreProtocol": false,
2335
+    "ignoreSubdomain": false,
2336
+    "ignorePath": true,
2337
+    "ignorePort": false,
2338
+    "expected": "http://subdomain.example.com.br"
2339
+}, {
2340
+    "url": "http://subdomain.example.com.br/page/login",
2341
+    "ignoreProtocol": false,
2342
+    "ignoreSubdomain": false,
2343
+    "ignorePath": false,
2344
+    "ignorePort": true,
2345
+    "expected": "http://subdomain.example.com.br/page/login"
2346
+}, {
2347
+    "url": "http://subdomain.example.com.br/page/login",
2348
+    "ignoreProtocol": false,
2349
+    "ignoreSubdomain": false,
2350
+    "ignorePath": false,
2351
+    "ignorePort": false,
2352
+    "expected": "http://subdomain.example.com.br/page/login"
2353
+}, {
2354
+    "url": "http://subdomain.example.com.br:8080/page/login",
2355
+    "ignoreProtocol": true,
2356
+    "ignoreSubdomain": true,
2357
+    "ignorePath": true,
2358
+    "ignorePort": true,
2359
+    "expected": "example.com.br"
2360
+}, {
2361
+    "url": "http://subdomain.example.com.br:8080/page/login",
2362
+    "ignoreProtocol": true,
2363
+    "ignoreSubdomain": true,
2364
+    "ignorePath": true,
2365
+    "ignorePort": false,
2366
+    "expected": "example.com.br:8080"
2367
+}, {
2368
+    "url": "http://subdomain.example.com.br:8080/page/login",
2369
+    "ignoreProtocol": true,
2370
+    "ignoreSubdomain": true,
2371
+    "ignorePath": false,
2372
+    "ignorePort": true,
2373
+    "expected": "example.com.br/page/login"
2374
+}, {
2375
+    "url": "http://subdomain.example.com.br:8080/page/login",
2376
+    "ignoreProtocol": true,
2377
+    "ignoreSubdomain": true,
2378
+    "ignorePath": false,
2379
+    "ignorePort": false,
2380
+    "expected": "example.com.br:8080/page/login"
2381
+}, {
2382
+    "url": "http://subdomain.example.com.br:8080/page/login",
2383
+    "ignoreProtocol": true,
2384
+    "ignoreSubdomain": false,
2385
+    "ignorePath": true,
2386
+    "ignorePort": true,
2387
+    "expected": "subdomain.example.com.br"
2388
+}, {
2389
+    "url": "http://subdomain.example.com.br:8080/page/login",
2390
+    "ignoreProtocol": true,
2391
+    "ignoreSubdomain": false,
2392
+    "ignorePath": true,
2393
+    "ignorePort": false,
2394
+    "expected": "subdomain.example.com.br:8080"
2395
+}, {
2396
+    "url": "http://subdomain.example.com.br:8080/page/login",
2397
+    "ignoreProtocol": true,
2398
+    "ignoreSubdomain": false,
2399
+    "ignorePath": false,
2400
+    "ignorePort": true,
2401
+    "expected": "subdomain.example.com.br/page/login"
2402
+}, {
2403
+    "url": "http://subdomain.example.com.br:8080/page/login",
2404
+    "ignoreProtocol": true,
2405
+    "ignoreSubdomain": false,
2406
+    "ignorePath": false,
2407
+    "ignorePort": false,
2408
+    "expected": "subdomain.example.com.br:8080/page/login"
2409
+}, {
2410
+    "url": "http://subdomain.example.com.br:8080/page/login",
2411
+    "ignoreProtocol": false,
2412
+    "ignoreSubdomain": true,
2413
+    "ignorePath": true,
2414
+    "ignorePort": true,
2415
+    "expected": "http://example.com.br"
2416
+}, {
2417
+    "url": "http://subdomain.example.com.br:8080/page/login",
2418
+    "ignoreProtocol": false,
2419
+    "ignoreSubdomain": true,
2420
+    "ignorePath": true,
2421
+    "ignorePort": false,
2422
+    "expected": "http://example.com.br:8080"
2423
+}, {
2424
+    "url": "http://subdomain.example.com.br:8080/page/login",
2425
+    "ignoreProtocol": false,
2426
+    "ignoreSubdomain": true,
2427
+    "ignorePath": false,
2428
+    "ignorePort": true,
2429
+    "expected": "http://example.com.br/page/login"
2430
+}, {
2431
+    "url": "http://subdomain.example.com.br:8080/page/login",
2432
+    "ignoreProtocol": false,
2433
+    "ignoreSubdomain": true,
2434
+    "ignorePath": false,
2435
+    "ignorePort": false,
2436
+    "expected": "http://example.com.br:8080/page/login"
2437
+}, {
2438
+    "url": "http://subdomain.example.com.br:8080/page/login",
2439
+    "ignoreProtocol": false,
2440
+    "ignoreSubdomain": false,
2441
+    "ignorePath": true,
2442
+    "ignorePort": true,
2443
+    "expected": "http://subdomain.example.com.br"
2444
+}, {
2445
+    "url": "http://subdomain.example.com.br:8080/page/login",
2446
+    "ignoreProtocol": false,
2447
+    "ignoreSubdomain": false,
2448
+    "ignorePath": true,
2449
+    "ignorePort": false,
2450
+    "expected": "http://subdomain.example.com.br:8080"
2451
+}, {
2452
+    "url": "http://subdomain.example.com.br:8080/page/login",
2453
+    "ignoreProtocol": false,
2454
+    "ignoreSubdomain": false,
2455
+    "ignorePath": false,
2456
+    "ignorePort": true,
2457
+    "expected": "http://subdomain.example.com.br/page/login"
2458
+}, {
2459
+    "url": "http://subdomain.example.com.br:8080/page/login",
2460
+    "ignoreProtocol": false,
2461
+    "ignoreSubdomain": false,
2462
+    "ignorePath": false,
2463
+    "ignorePort": false,
2464
+    "expected": "http://subdomain.example.com.br:8080/page/login"
2465
+}, {
2466
+    "url": "https://subdomain.example.com.br:8080/page/login",
2467
+    "ignoreProtocol": true,
2468
+    "ignoreSubdomain": true,
2469
+    "ignorePath": true,
2470
+    "ignorePort": true,
2471
+    "expected": "example.com.br"
2472
+}, {
2473
+    "url": "https://subdomain.example.com.br:8080/page/login",
2474
+    "ignoreProtocol": true,
2475
+    "ignoreSubdomain": true,
2476
+    "ignorePath": true,
2477
+    "ignorePort": false,
2478
+    "expected": "example.com.br:8080"
2479
+}, {
2480
+    "url": "https://subdomain.example.com.br:8080/page/login",
2481
+    "ignoreProtocol": true,
2482
+    "ignoreSubdomain": true,
2483
+    "ignorePath": false,
2484
+    "ignorePort": true,
2485
+    "expected": "example.com.br/page/login"
2486
+}, {
2487
+    "url": "https://subdomain.example.com.br:8080/page/login",
2488
+    "ignoreProtocol": true,
2489
+    "ignoreSubdomain": true,
2490
+    "ignorePath": false,
2491
+    "ignorePort": false,
2492
+    "expected": "example.com.br:8080/page/login"
2493
+}, {
2494
+    "url": "https://subdomain.example.com.br:8080/page/login",
2495
+    "ignoreProtocol": true,
2496
+    "ignoreSubdomain": false,
2497
+    "ignorePath": true,
2498
+    "ignorePort": true,
2499
+    "expected": "subdomain.example.com.br"
2500
+}, {
2501
+    "url": "https://subdomain.example.com.br:8080/page/login",
2502
+    "ignoreProtocol": true,
2503
+    "ignoreSubdomain": false,
2504
+    "ignorePath": true,
2505
+    "ignorePort": false,
2506
+    "expected": "subdomain.example.com.br:8080"
2507
+}, {
2508
+    "url": "https://subdomain.example.com.br:8080/page/login",
2509
+    "ignoreProtocol": true,
2510
+    "ignoreSubdomain": false,
2511
+    "ignorePath": false,
2512
+    "ignorePort": true,
2513
+    "expected": "subdomain.example.com.br/page/login"
2514
+}, {
2515
+    "url": "https://subdomain.example.com.br:8080/page/login",
2516
+    "ignoreProtocol": true,
2517
+    "ignoreSubdomain": false,
2518
+    "ignorePath": false,
2519
+    "ignorePort": false,
2520
+    "expected": "subdomain.example.com.br:8080/page/login"
2521
+}, {
2522
+    "url": "https://subdomain.example.com.br:8080/page/login",
2523
+    "ignoreProtocol": false,
2524
+    "ignoreSubdomain": true,
2525
+    "ignorePath": true,
2526
+    "ignorePort": true,
2527
+    "expected": "https://example.com.br"
2528
+}, {
2529
+    "url": "https://subdomain.example.com.br:8080/page/login",
2530
+    "ignoreProtocol": false,
2531
+    "ignoreSubdomain": true,
2532
+    "ignorePath": true,
2533
+    "ignorePort": false,
2534
+    "expected": "https://example.com.br:8080"
2535
+}, {
2536
+    "url": "https://subdomain.example.com.br:8080/page/login",
2537
+    "ignoreProtocol": false,
2538
+    "ignoreSubdomain": true,
2539
+    "ignorePath": false,
2540
+    "ignorePort": true,
2541
+    "expected": "https://example.com.br/page/login"
2542
+}, {
2543
+    "url": "https://subdomain.example.com.br:8080/page/login",
2544
+    "ignoreProtocol": false,
2545
+    "ignoreSubdomain": true,
2546
+    "ignorePath": false,
2547
+    "ignorePort": false,
2548
+    "expected": "https://example.com.br:8080/page/login"
2549
+}, {
2550
+    "url": "https://subdomain.example.com.br:8080/page/login",
2551
+    "ignoreProtocol": false,
2552
+    "ignoreSubdomain": false,
2553
+    "ignorePath": true,
2554
+    "ignorePort": true,
2555
+    "expected": "https://subdomain.example.com.br"
2556
+}, {
2557
+    "url": "https://subdomain.example.com.br:8080/page/login",
2558
+    "ignoreProtocol": false,
2559
+    "ignoreSubdomain": false,
2560
+    "ignorePath": true,
2561
+    "ignorePort": false,
2562
+    "expected": "https://subdomain.example.com.br:8080"
2563
+}, {
2564
+    "url": "https://subdomain.example.com.br:8080/page/login",
2565
+    "ignoreProtocol": false,
2566
+    "ignoreSubdomain": false,
2567
+    "ignorePath": false,
2568
+    "ignorePort": true,
2569
+    "expected": "https://subdomain.example.com.br/page/login"
2570
+}, {
2571
+    "url": "https://subdomain.example.com.br:8080/page/login",
2572
+    "ignoreProtocol": false,
2573
+    "ignoreSubdomain": false,
2574
+    "ignorePath": false,
2575
+    "ignorePort": false,
2576
+    "expected": "https://subdomain.example.com.br:8080/page/login"
2577
+}, {
2578
+    "url": "https://subdomain.example.com.br/page/login",
2579
+    "ignoreProtocol": true,
2580
+    "ignoreSubdomain": true,
2581
+    "ignorePath": true,
2582
+    "ignorePort": true,
2583
+    "expected": "example.com.br"
2584
+}, {
2585
+    "url": "https://subdomain.example.com.br/page/login",
2586
+    "ignoreProtocol": true,
2587
+    "ignoreSubdomain": true,
2588
+    "ignorePath": true,
2589
+    "ignorePort": false,
2590
+    "expected": "example.com.br"
2591
+}, {
2592
+    "url": "https://subdomain.example.com.br/page/login",
2593
+    "ignoreProtocol": true,
2594
+    "ignoreSubdomain": true,
2595
+    "ignorePath": false,
2596
+    "ignorePort": true,
2597
+    "expected": "example.com.br/page/login"
2598
+}, {
2599
+    "url": "https://subdomain.example.com.br/page/login",
2600
+    "ignoreProtocol": true,
2601
+    "ignoreSubdomain": true,
2602
+    "ignorePath": false,
2603
+    "ignorePort": false,
2604
+    "expected": "example.com.br/page/login"
2605
+}, {
2606
+    "url": "https://subdomain.example.com.br/page/login",
2607
+    "ignoreProtocol": true,
2608
+    "ignoreSubdomain": false,
2609
+    "ignorePath": true,
2610
+    "ignorePort": true,
2611
+    "expected": "subdomain.example.com.br"
2612
+}, {
2613
+    "url": "https://subdomain.example.com.br/page/login",
2614
+    "ignoreProtocol": true,
2615
+    "ignoreSubdomain": false,
2616
+    "ignorePath": true,
2617
+    "ignorePort": false,
2618
+    "expected": "subdomain.example.com.br"
2619
+}, {
2620
+    "url": "https://subdomain.example.com.br/page/login",
2621
+    "ignoreProtocol": true,
2622
+    "ignoreSubdomain": false,
2623
+    "ignorePath": false,
2624
+    "ignorePort": true,
2625
+    "expected": "subdomain.example.com.br/page/login"
2626
+}, {
2627
+    "url": "https://subdomain.example.com.br/page/login",
2628
+    "ignoreProtocol": true,
2629
+    "ignoreSubdomain": false,
2630
+    "ignorePath": false,
2631
+    "ignorePort": false,
2632
+    "expected": "subdomain.example.com.br/page/login"
2633
+}, {
2634
+    "url": "https://subdomain.example.com.br/page/login",
2635
+    "ignoreProtocol": false,
2636
+    "ignoreSubdomain": true,
2637
+    "ignorePath": true,
2638
+    "ignorePort": true,
2639
+    "expected": "https://example.com.br"
2640
+}, {
2641
+    "url": "https://subdomain.example.com.br/page/login",
2642
+    "ignoreProtocol": false,
2643
+    "ignoreSubdomain": true,
2644
+    "ignorePath": true,
2645
+    "ignorePort": false,
2646
+    "expected": "https://example.com.br"
2647
+}, {
2648
+    "url": "https://subdomain.example.com.br/page/login",
2649
+    "ignoreProtocol": false,
2650
+    "ignoreSubdomain": true,
2651
+    "ignorePath": false,
2652
+    "ignorePort": true,
2653
+    "expected": "https://example.com.br/page/login"
2654
+}, {
2655
+    "url": "https://subdomain.example.com.br/page/login",
2656
+    "ignoreProtocol": false,
2657
+    "ignoreSubdomain": true,
2658
+    "ignorePath": false,
2659
+    "ignorePort": false,
2660
+    "expected": "https://example.com.br/page/login"
2661
+}, {
2662
+    "url": "https://subdomain.example.com.br/page/login",
2663
+    "ignoreProtocol": false,
2664
+    "ignoreSubdomain": false,
2665
+    "ignorePath": true,
2666
+    "ignorePort": true,
2667
+    "expected": "https://subdomain.example.com.br"
2668
+}, {
2669
+    "url": "https://subdomain.example.com.br/page/login",
2670
+    "ignoreProtocol": false,
2671
+    "ignoreSubdomain": false,
2672
+    "ignorePath": true,
2673
+    "ignorePort": false,
2674
+    "expected": "https://subdomain.example.com.br"
2675
+}, {
2676
+    "url": "https://subdomain.example.com.br/page/login",
2677
+    "ignoreProtocol": false,
2678
+    "ignoreSubdomain": false,
2679
+    "ignorePath": false,
2680
+    "ignorePort": true,
2681
+    "expected": "https://subdomain.example.com.br/page/login"
2682
+}, {
2683
+    "url": "https://subdomain.example.com.br/page/login",
2684
+    "ignoreProtocol": false,
2685
+    "ignoreSubdomain": false,
2686
+    "ignorePath": false,
2687
+    "ignorePort": false,
2688
+    "expected": "https://subdomain.example.com.br/page/login"
2241 2689
 }];
2242 2690
 
2243 2691
 describe('Testing url parser', function () {