@@ -76,6 +76,7 @@ const tld_extraction_suffixes: table[count] of pattern = {
76
76
[5 ] = / \. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+$/ ,
77
77
[6 ] = / \. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+$/ ,
78
78
[7 ] = / \. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+$/ ,
79
+ [8 ] = / \. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+\. [^\. ]+$/ ,
79
80
};
80
81
81
82
function zone_by_depth (domain: string , depth: count ): string
@@ -93,7 +94,9 @@ function zone_by_depth(domain: string, depth: count): string
93
94
function effective_tld (domain: string ): string
94
95
{
95
96
local depth= 1 ;
96
- if ( effective_tlds_5th_level in domain )
97
+ if ( effective_tlds_6th_level in domain )
98
+ depth= 6 ;
99
+ else if ( effective_tlds_5th_level in domain )
97
100
depth= 5 ;
98
101
else if ( effective_tlds_4th_level in domain )
99
102
depth= 4 ;
@@ -107,7 +110,9 @@ function effective_tld(domain: string): string
107
110
function effective_domain (domain: string ): string
108
111
{
109
112
local depth= 2 ;
110
- if ( effective_tlds_5th_level in domain )
113
+ if ( effective_tlds_6th_level in domain )
114
+ depth= 7 ;
115
+ else if ( effective_tlds_5th_level in domain )
111
116
depth= 6 ;
112
117
else if ( effective_tlds_4th_level in domain )
113
118
depth= 5 ;
@@ -121,7 +126,9 @@ function effective_domain(domain: string): string
121
126
function effective_subdomain (domain: string ): string
122
127
{
123
128
local depth= 3 ;
124
- if ( effective_tlds_5th_level in domain )
129
+ if ( effective_tlds_6th_level in domain )
130
+ depth= 8 ;
131
+ else if ( effective_tlds_5th_level in domain )
125
132
depth= 7 ;
126
133
else if ( effective_tlds_4th_level in domain )
127
134
depth= 6 ;
0 commit comments