Ignore case when extracting extension in Zotero.File.createShortened()
This commit is contained in:
parent
f5b5617885
commit
5a8de7054c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue