UNPKG
@vnmfify/core
Version:
latest (0.1.0-a37)
0.1.0-a37
0.1.0-a36
0.1.0-a35
0.1.0-a34
0.1.0-a33
0.1.0-a32
0.1.0-a31
0.1.0-a3
0.1.0-a2
0.1.0-a1
```shell npm i @vnmfify/core -S ```
@vnmfify/core
/
uploader
/
uploader.utils.js
14 lines
(11 loc)
•
308 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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