Restored the mime comparison regex - I was too agressive in my changes earlier.

This commit is contained in:
Grant Echols 2016-01-15 11:42:18 -07:00
parent 7c4ef5c1e9
commit 746f79e3f1

View File

@ -217,7 +217,7 @@ function filterFiles( files ){
file.url && (
file.url.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)(?:\?.*)?$/) || (
file.mimetype &&
file.mimetype.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)(?:\?.*)?$/)
file.mimetype.toLowerCase().match(/^.*\/(png|jpg|jpeg|gif)$/)
)
) ){
//This is sufficient to serve as a level