mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-31 15:12:07 +03:00
Broadened the check for mime type in the url to allow query strings
This commit is contained in:
parent
5390cb96c7
commit
7c4ef5c1e9
@ -215,9 +215,9 @@ 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)$/)
|
||||
file.mimetype.toLowerCase().match(/^.*\.(png|jpg|jpeg|gif)(?:\?.*)?$/)
|
||||
)
|
||||
) ){
|
||||
//This is sufficient to serve as a level
|
||||
|
Loading…
x
Reference in New Issue
Block a user