UNPKG

@vnmfify/core

Version:

```shell npm i @vnmfify/core -S ```

14 lines (11 loc) 308 B
var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i; export function isImageFile(item) { if (item.type) { return item.type.indexOf("image") === 0; } if (item.url) { return IMAGE_REGEXP.test(item.url); } return false; } //# sourceMappingURL=uploader.utils.js.map