From 6f9ffe13e3b832f4d0ef467fa02662fa071d7209 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 18 Jun 2013 23:51:46 -0400 Subject: [PATCH] Don't change capitalization of unabbeviated words in journal titles Fixes https://forums.zotero.org/discussion/30352/ --- chrome/content/zotero/xpcom/cite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index feac5889e..caed89fdd 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -364,8 +364,8 @@ Zotero.Cite.getAbbreviation = new function() { */ function normalizeKey(key) { // Strip periods, normalize spacing, and convert to lowercase - return key.toString().toLowerCase(). - replace(/(?:\b|^)(?:and|et|y|und|l[ae]|the|[ld]')(?:\b|$)|[\x21-\x2C.\/\x3A-\x40\x5B-\x60\\\x7B-\x7E]/g, ""). + return key.toString(). + replace(/(?:\b|^)(?:and|et|y|und|l[ae]|the|[ld]')(?:\b|$)|[\x21-\x2C.\/\x3A-\x40\x5B-\x60\\\x7B-\x7E]/ig, ""). replace(/\s+/g, " ").trim(); }