From c24caceb03b9e6bfb87803613222d5a0e540c969 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Thu, 29 Dec 2022 16:16:29 -0700 Subject: [PATCH] Omit "www." in site alt replacements Fixes #913 --- app/utils/results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/results.py b/app/utils/results.py index f8944bc..1a249e5 100644 --- a/app/utils/results.py +++ b/app/utils/results.py @@ -10,7 +10,7 @@ from urllib.parse import parse_qs import re SKIP_ARGS = ['ref_src', 'utm'] -SKIP_PREFIX = ['//www.', '//mobile.', '//m.'] +SKIP_PREFIX = ['//www.', '//mobile.', '//m.', 'www.'] GOOG_STATIC = 'www.gstatic.com' G_M_LOGO_URL = 'https://www.gstatic.com/m/images/icons/googleg.gif' GOOG_IMG = '/images/branding/searchlogo/1x/googlelogo'