Skip to content

Commit

Permalink
Change the filename to lowercase before matching it
Browse files Browse the repository at this point in the history
(closes #5266)
  • Loading branch information
JamesKingdom committed Aug 31, 2018
1 parent ad289e0 commit 40d54f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/svg/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 40d54f0

Please sign in to comment.