Only put periods after capital latin letters

This commit is contained in:
aurimasv 2012-03-12 06:01:50 -05:00
parent daf1899c72
commit 19a6b08b51

View file

@ -187,7 +187,7 @@ Zotero.Utilities = {
var newFirstName = '';
for(var i=0, n=names.length; i<n; i++) {
newFirstName += names[i];
if(names[i].length == 1) newFirstName += '.';
if(names[i].match(/^[A-Z]$/)) newFirstName += '.';
newFirstName += ' ';
}
firstName = newFirstName.trim();