From beb77864cb9f002b3950301ac730a9cc428b58de Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 8 Mar 2012 22:45:20 -0500 Subject: [PATCH] Don't clean periods when useComma is enabled --- chrome/content/zotero/xpcom/utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 15f5140159..c559606640 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -147,7 +147,7 @@ Zotero.Utilities = { } author = author.replace(/^[\s\.\,\/\[\]\:]+/, ''); - author = author.replace(/[\s\,\/\[\]\:\.]+$/, ''); + author = author.replace((useComma ? /[\s\,\/\[\]\:]+$/ : /[\s\,\/\[\]\:\.]+$/), ''); author = author.replace(/ +/, ' '); if(useComma) { // Add spaces between periods