Merge pull request #819 from fs-webdev/master

Broadened the check for mime type in the url to allow query strings
This commit is contained in:
Ian Gilman 2016-01-18 09:06:44 -08:00
commit 3e5a897eb5

View File

@ -215,7 +215,7 @@ function filterFiles( files ){
if( file.height &&
file.width &&
file.url && (
file.url.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)$/) || (
file.url.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)(?:\?.*)?$/) || (
file.mimetype &&
file.mimetype.toLowerCase().match(/^.*\/(png|jpg|jpeg|gif)$/)
)