From db1b58fa46094ade526adc80b7d5b1aaf3a9f96c Mon Sep 17 00:00:00 2001 From: Kuingsmile <96409857+Kuingsmile@users.noreply.github.com> Date: Wed, 6 May 2026 14:40:56 +0800 Subject: [PATCH] :sparkles: Feature(custom): uppercase image ext is now recognized as image in manage --- src/main/utils/common.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/utils/common.ts b/src/main/utils/common.ts index e40a7602..80f2a160 100644 --- a/src/main/utils/common.ts +++ b/src/main/utils/common.ts @@ -55,7 +55,9 @@ export const getRawData = (args: any): any => { const getExtension = (fileName: string) => path.extname(fileName).slice(1) export const isImage = (fileName: string) => - ['jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp', 'ico', 'svg', 'avif'].includes(getExtension(fileName)) + ['jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp', 'ico', 'svg', 'avif'].includes( + getExtension(fileName).toLocaleLowerCase(), + ) export let tray: Tray