www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 6f9ffe13e3b832f4d0ef467fa02662fa071d7209
parent 9f0e5c02a65832997913fbcaa3da3058e5ec6c80
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 18 Jun 2013 23:51:46 -0400

Don't change capitalization of unabbeviated words in journal titles

Fixes https://forums.zotero.org/discussion/30352/

Diffstat:
Mchrome/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 @@ -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(); }