Kaynağa Gözat

publicsuffix: update table to latest list from publicsuffix.org.

Change-Id: I4e4eb9c710b0ee21a2ade97fd7d38cbd984a6b7f
Reviewed-on: https://go-review.googlesource.com/16424
Reviewed-by: Nigel Tao <nigeltao@golang.org>
Volker Dobler 10 yıl önce
ebeveyn
işleme
b4e17d61b1
3 değiştirilmiş dosya ile 8468 ekleme ve 8030 silme
  1. 4 4
      publicsuffix/list_test.go
  2. 8239 8023
      publicsuffix/table.go
  3. 225 3
      publicsuffix/table_test.go

+ 4 - 4
publicsuffix/list_test.go

@@ -356,10 +356,10 @@ var eTLDPlusOneTestCases = []struct {
 	{"a.b.example.uk.com", "example.uk.com"},
 	{"test.ac", "test.ac"},
 	// TLD with only 1 (wildcard) rule.
-	{"il", ""},
-	{"c.il", ""},
-	{"b.c.il", "b.c.il"},
-	{"a.b.c.il", "b.c.il"},
+	{"mm", ""},
+	{"c.mm", ""},
+	{"b.c.mm", "b.c.mm"},
+	{"a.b.c.mm", "b.c.mm"},
 	// More complex TLD.
 	{"jp", ""},
 	{"test.jp", "test.jp"},

Dosya farkı çok büyük olduğundan ihmal edildi
+ 8239 - 8023
publicsuffix/table.go


Dosya farkı çok büyük olduğundan ihmal edildi
+ 225 - 3
publicsuffix/table_test.go


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor