Explorar el Código

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 hace 10 meses
padre
commit
e9d4a130fd
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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{}{