commit 5a8de7054cec894000f377b40698f9d09cd7629a parent f5b5617885bba1c4a76e812853f3f6a0fe92c434 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 18 Sep 2014 16:54:05 -0400 Ignore case when extracting extension in Zotero.File.createShortened() Diffstat:
| M | 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 @@ -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) {