Просмотр исходного кода

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 месяцев назад
Родитель
Сommit
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{}{