commit b23632f6c3338550735336c6831e86a1b16a381b
parent 998d52ec6d5ac22081217303c987a45ae961c9fd
Author: aurimasv <aurimas.dev@gmail.com>
Date: Thu, 8 Mar 2012 22:26:33 -0600
Revert previous fix
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((useComma ? /[\s\,\/\[\]\:]+$/ : /[\s\,\/\[\]\:\.]+$/), '');
+ author = author.replace(/[\s\,\/\[\]\:\.]+$/, '');
author = author.replace(/ +/, ' ');
if(useComma) {
// Add spaces between periods