From b680bcf375a2afd73ca42b677ad458126aec0b45 Mon Sep 17 00:00:00 2001 From: Aurimas Vinckevicius Date: Tue, 17 Sep 2013 23:55:21 -0500 Subject: [PATCH] Abbreviate plural forms of words same as singular --- chrome/content/zotero/xpcom/cite.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index 74d1a05b2..d912fcb5e 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -408,8 +408,9 @@ Zotero.Cite.getAbbreviation = new function() { for(var j=0; j0 && newWord === undefined; k--) { @@ -426,7 +432,7 @@ Zotero.Cite.getAbbreviation = new function() { } // Don't substitute with a longer word - if(newWord && word.length - newWord.length < 1) { + if(newWord && !exactMatch && word.length - newWord.length < 1) { newWord = word; }