Fix Zotero crash pasting in creator with certain leading whitespace

This commit is contained in:
Dan Stillman 2014-02-18 18:42:06 -05:00
parent 5d54dd9fbf
commit 04fa4a0943

View file

@ -1688,7 +1688,7 @@
var otherFields = this.getCreatorFields(row);
otherFields[creatorField] = value;
var lastName = otherFields.lastName;
var lastName = otherFields.lastName.trim();
//Handle \n\r and \n delimited entries
var rawNameArray = lastName.split(/\r\n?|\n/);