www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ad4ded95bb7d70fd55d9020d155c2a7b737075c8
parent 4fcee3afa4c8ce3e389f9441614bfae9828fb67f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun,  1 Apr 2012 13:44:49 -0400

Trim ISBNs before lookup

Diffstat:
Mchrome/content/zotero/lookup.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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};