assume first name is initials when there is only one capital letter, even if last name is all caps
This commit is contained in:
parent
f3664a8c6e
commit
0042dde43d
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user