Recognize files with .jpeg extension as images.
This commit is contained in:
parent
1ea6f14384
commit
54722f38d8
@ -173,7 +173,7 @@ class Post
|
||||
|
||||
$.extend file,
|
||||
url: file.link.href
|
||||
isImage: /(jpg|png|gif)$/i.test file.link.href
|
||||
isImage: /(jpe?g|png|gif)$/i.test file.link.href
|
||||
isVideo: /(webm|mp4)$/i.test file.link.href
|
||||
size = +file.size.match(/[\d.]+/)[0]
|
||||
unit = ['B', 'KB', 'MB', 'GB'].indexOf file.size.match(/\w+$/)[0]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user