From 7b818b577d8058f4c18895598199333bc6160485 Mon Sep 17 00:00:00 2001 From: bang9 Date: Thu, 24 Oct 2024 20:16:31 +0900 Subject: [PATCH] chore: remove fallback case for testing --- src/components/BotProfileImage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BotProfileImage.tsx b/src/components/BotProfileImage.tsx index cfe2f1411..a99f570d3 100644 --- a/src/components/BotProfileImage.tsx +++ b/src/components/BotProfileImage.tsx @@ -10,7 +10,7 @@ import BotProfileIcon from '../icons/bot-profile-image-small.svg'; function isMaybeFavicon(url: string) { if (url.length < 4) return false; const fileName = url.substring(url.lastIndexOf('/') + 1); - return /fav_|favicon|\.ico/.test(fileName); + return fileName.startsWith('fav_'); } const FaviconContainer = styled.div<{ size: number }>`