diff --git a/chrome/content/zotero/rtfScan.js b/chrome/content/zotero/rtfScan.js index ffa9cc7884..d4c4b5cbd9 100644 --- a/chrome/content/zotero/rtfScan.js +++ b/chrome/content/zotero/rtfScan.js @@ -341,7 +341,9 @@ var Zotero_RTFScan = new function() { var m = initialRe.exec(firstName); if(m) { var initials = firstName.replace(/[^A-Z]/g, ""); - var itemInitials = [name[0].toUpperCase() for each (name in itemCreator.ref.firstName.split(/ +/g))].join(""); + var itemInitials = itemCreator.firstName.split(/ +/g) + .map(name => name[0].toUpperCase()) + .join(""); if(initials != itemInitials) return false; } else { // not all initials; verify that the first name matches diff --git a/chrome/content/zotero/rtfScan.xul b/chrome/content/zotero/rtfScan.xul index 1c533101d5..1b83e42ad8 100644 --- a/chrome/content/zotero/rtfScan.xul +++ b/chrome/content/zotero/rtfScan.xul @@ -45,7 +45,7 @@ &zotero.rtfScan.scanPage.description; - + &zotero.rtfScan.formatPage.description; - +