mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-08 16:54:21 +00:00
Remove more contexts
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { IMAGE_EXTENSIONS } from './constants';
|
||||
|
||||
export const isImageFile = (filePath) => {
|
||||
const imageExtensions = ['.jpg', '.jpeg', '.png', '.gif', '.webp', '.svg'];
|
||||
return imageExtensions.some((ext) => filePath.toLowerCase().endsWith(ext));
|
||||
return IMAGE_EXTENSIONS.some((ext) => filePath.toLowerCase().endsWith(ext));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user