diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js index 99984dfea..0a2e43e84 100644 --- a/chrome/content/zotero/lookup.js +++ b/chrome/content/zotero/lookup.js @@ -39,7 +39,7 @@ const Zotero_Lookup = new function () { if(doi) { var item = {itemType:"journalArticle", DOI:doi}; } else { - identifier = identifier.replace("-", "", "g"); + identifier = identifier.trim().replace("-", "", "g"); if(identifier.length == 10 || identifier.length == 13) { // ISBN var item = {itemType:"book", ISBN:identifier};