From f27ff0e346ae64b49d51cb3fb9cc23c8d8b32e59 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 16 Jun 2025 12:39:05 +0200 Subject: [PATCH] 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. --- internal/reader/sanitizer/sanitizer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/reader/sanitizer/sanitizer.go b/internal/reader/sanitizer/sanitizer.go index 33c564de..0b282057 100644 --- a/internal/reader/sanitizer/sanitizer.go +++ b/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{}{