Don't clean periods when useComma is enabled

This commit is contained in:
Simon Kornblith 2012-03-08 22:45:20 -05:00
parent 814b15c23a
commit beb77864cb

View file

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