assume first name is initials when there is only one capital letter, even if last name is all caps

This commit is contained in:
Simon Kornblith 2007-03-23 14:10:27 +00:00
parent f3664a8c6e
commit 0042dde43d

View File

@ -72,7 +72,8 @@ Zotero.Utilities.prototype.cleanAuthor = function(author, type, useComma) {
}
if(firstName && Zotero.Utilities._allCapsRe.test(firstName) &&
firstName.length <= 4 && lastName.toUpperCase() != lastName) {
firstName.length < 4 &&
(firstName.length == 1 || lastName.toUpperCase() != lastName)) {
// first name is probably initials
var newFirstName = "";
for(var i=0; i<firstName.length; i++) {