From 83af7fa18ae1cc6f16479e5971e77b0c4a1fd680 Mon Sep 17 00:00:00 2001 From: Max Beer Date: Tue, 26 Nov 2024 13:20:48 +0100 Subject: [PATCH] respect www subdomain when fetching website favicon --- src/components/common/Favicon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/Favicon.tsx b/src/components/common/Favicon.tsx index e78bdbc7de..47c65aab14 100644 --- a/src/components/common/Favicon.tsx +++ b/src/components/common/Favicon.tsx @@ -1,5 +1,5 @@ function getHostName(url: string) { - const match = url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:/\n?=]+)/im); + const match = url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?([^:/\n?=]+)/im); return match && match.length > 1 ? match[1] : null; }