mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Restored the mime comparison regex - I was too agressive in my changes earlier.
This commit is contained in:
parent
7c4ef5c1e9
commit
746f79e3f1
@ -217,7 +217,7 @@ function filterFiles( files ){
|
|||||||
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)$/)
|
||||||
)
|
)
|
||||||
) ){
|
) ){
|
||||||
//This is sufficient to serve as a level
|
//This is sufficient to serve as a level
|
||||||
|
Loading…
Reference in New Issue
Block a user