Ignore case when extracting extension in Zotero.File.createShortened()

This commit is contained in:
Dan Stillman 2014-09-18 16:54:05 -04:00
parent f5b5617885
commit 5a8de7054c

View file

@ -347,7 +347,7 @@ Zotero.File = new function(){
}
// Preserve extension
var matches = file.leafName.match(/\.[a-z0-9]{0,20}$/);
var matches = file.leafName.match(/\.[a-z0-9]{0,20}$/i);
var ext = matches ? matches[0] : "";
if (pathError) {