Revert previous fix

This commit is contained in:
aurimasv 2012-03-08 22:26:33 -06:00
parent 998d52ec6d
commit b23632f6c3

View File

@ -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