浏览代码

publicsuffix: update table to latest list from publicsuffix.org

Update the list to revision f47d806df99585862c8426c3e064a50eb5a278f5
(2017-06-14T11:49:01Z).

The rules for the TLD zw changed thus changing the tests to bd which
has the same rule as the old zw TLD.

Change-Id: Ic4ed6eaeb3e97d20c50f44a4934576fa3f0393d7
Reviewed-on: https://go-review.googlesource.com/45731
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Volker Dobler 8 年之前
父节点
当前提交
ddf80d0970
共有 3 个文件被更改,包括 8927 次插入8567 次删除
  1. 7 7
      publicsuffix/list_test.go
  2. 8655 8508
      publicsuffix/table.go
  3. 265 52
      publicsuffix/table_test.go

+ 7 - 7
publicsuffix/list_test.go

@@ -216,13 +216,13 @@ var publicSuffixTestCases = []struct {
 	{"aaa.xn--p1ai", "xn--p1ai"},
 	{"www.xxx.yyy.xn--p1ai", "xn--p1ai"},
 
-	// The .zw rules are:
-	// *.zw
-	{"zw", "zw"},
-	{"www.zw", "www.zw"},
-	{"zzz.zw", "zzz.zw"},
-	{"www.zzz.zw", "zzz.zw"},
-	{"www.xxx.yyy.zzz.zw", "zzz.zw"},
+	// The .bd rules are:
+	// *.bd
+	{"bd", "bd"},
+	{"www.bd", "www.bd"},
+	{"zzz.bd", "zzz.bd"},
+	{"www.zzz.bd", "zzz.bd"},
+	{"www.xxx.yyy.zzz.bd", "zzz.bd"},
 
 	// There are no .nosuchtld rules.
 	{"nosuchtld", "nosuchtld"},

文件差异内容过多而无法显示
+ 8655 - 8508
publicsuffix/table.go


文件差异内容过多而无法显示
+ 265 - 52
publicsuffix/table_test.go


部分文件因为文件数量过多而无法显示