From 5a8de7054cec894000f377b40698f9d09cd7629a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 18 Sep 2014 16:54:05 -0400 Subject: [PATCH] Ignore case when extracting extension in Zotero.File.createShortened() --- chrome/content/zotero/xpcom/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js index 7d82e5e30..bb05035ff 100644 --- a/chrome/content/zotero/xpcom/file.js +++ b/chrome/content/zotero/xpcom/file.js @@ -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) {