فهرست منبع

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 10 ماه پیش
والد
کامیت
e9d4a130fd
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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{}{