mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
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:
commit
3e5a897eb5
@ -215,7 +215,7 @@ function filterFiles( files ){
|
|||||||
if( file.height &&
|
if( file.height &&
|
||||||
file.width &&
|
file.width &&
|
||||||
file.url && (
|
file.url && (
|
||||||
file.url.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)$/) || (
|
file.url.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)(?:\?.*)?$/) || (
|
||||||
file.mimetype &&
|
file.mimetype &&
|
||||||
file.mimetype.toLowerCase().match(/^.*\/(png|jpg|jpeg|gif)$/)
|
file.mimetype.toLowerCase().match(/^.*\/(png|jpg|jpeg|gif)$/)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user