From 4c8c9a57935b7742c21e4931e30e2cd51558a8ee Mon Sep 17 00:00:00 2001 From: MadDogOwner Date: Sat, 1 Aug 2026 16:41:01 +0800 Subject: [PATCH] fix(previews/image): ensure fileext check case insensitive Co-authored-by: Copilot Signed-off-by: MadDogOwner --- src/pages/home/previews/image.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/previews/image.tsx b/src/pages/home/previews/image.tsx index e9031986d..fa41586fa 100644 --- a/src/pages/home/previews/image.tsx +++ b/src/pages/home/previews/image.tsx @@ -43,7 +43,7 @@ import { Obj, ObjType } from "~/types" import { ext, formatDate, getFileSize, loadScriptIIFE } from "~/utils" const HEIF_EXTS = new Set(["heic", "heif", "avif", "vvc", "avc"]) -const isHeif = (name: string) => HEIF_EXTS.has(ext(name)) +const isHeif = (name: string) => HEIF_EXTS.has(ext(name).toLowerCase()) const ZOOM_MIN = 0.1 const ZOOM_MAX = 10 const ZOOM_WHEEL_FACTOR = 1.08