commit 1c4eebff0b4c1cea182873aa0e8822de46514583
parent 14ac5a7d2d24b778b3796c639f77def2c9a224ac
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 9 Apr 2012 16:47:12 -0400
Deal with spaces in ISBNs
Diffstat:
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.trim().replace("-", "", "g");
+ identifier = identifier.trim().replace(/[\- ]/g, "");
if(identifier.length == 10 || identifier.length == 13) {
// ISBN
var item = {itemType:"book", ISBN:identifier};