commit beb77864cb9f002b3950301ac730a9cc428b58de
parent 814b15c23a9db8437b1057ed83f404217d0e9592
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 8 Mar 2012 22:45:20 -0500
Don't clean periods when useComma is enabled
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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