diff --git a/src/legacytilesource.js b/src/legacytilesource.js index 73fc5e71..b661b967 100644 --- a/src/legacytilesource.js +++ b/src/legacytilesource.js @@ -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