Change the filename to lowercase before matching it

(closes #5266)
This commit is contained in:
James Kingdom
2018-08-31 11:33:05 -04:00
parent ad289e0565
commit 40d54f02fc
+1 -1
View File
@@ -317,7 +317,7 @@ export function svgData(projection, context, dispatch) {
if (!fileName) return;
var re = /\.(gpx|kml|(geo)?json)$/i;
var match = fileName.match(re);
var match = fileName.toLowerCase().match(re);
return match && match.length && match[0];
}