Procházet zdrojové kódy

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 před 10 měsíci
rodič
revize
e9d4a130fd
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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{}{