We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4942dd2 commit 5eea616Copy full SHA for 5eea616
src/utils/imageCompress.ts
@@ -5,4 +5,6 @@ export enum AvailableForCompressExtension {
5
}
6
7
export const isCompressible = (fileName: string) =>
8
- Object.keys(AvailableForCompressExtension).some((ext) => fileName.endsWith(`.${ext}`));
+ Object.values(AvailableForCompressExtension).some((ext) =>
9
+ fileName.toLowerCase().endsWith(`.${ext}`),
10
+ );
0 commit comments