mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Merge pull request #79 from aurimasv/cleanAuthor
Periods after latin letters only
This commit is contained in:
commit
ba96aff194
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue