Browse Source

refactor(sanitizer): remove two useless `www.` prefixes

No need to have those prefixes, as the check is for substrings, so removing
them will improve the amount of matches.
jvoisin 11 tháng trước cách đây
mục cha
commit
e9d4a130fd
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      internal/reader/sanitizer/sanitizer.go

+ 2 - 2
internal/reader/sanitizer/sanitizer.go

@@ -134,8 +134,8 @@ var (
 		"stats.wordpress.com",
 		"twitter.com/intent/tweet",
 		"twitter.com/share",
-		"www.facebook.com/sharer.php",
-		"www.linkedin.com/shareArticle",
+		"facebook.com/sharer.php",
+		"linkedin.com/shareArticle",
 	}
 
 	validURISchemes = map[string]struct{}{