From 861543d4533521fd13c55ad2011425b5dfb41c6b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 5 Jan 2010 09:07:50 +0000 Subject: [PATCH] Allow slash in second part of DOI, which is apparently valid (http://forums.zotero.org/discussion/10473/) --- translators/DOI.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translators/DOI.js b/translators/DOI.js index de7321048..a0bfada3e 100644 --- a/translators/DOI.js +++ b/translators/DOI.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":300, "inRepository":true, - "lastUpdated":"2009-04-07 15:48:00" + "lastUpdated":"2010-01-05 09:05:00" } var items = {}; @@ -16,7 +16,7 @@ var selectArray = {}; // builds a list of DOIs function getDOIs(doc) { - const DOIre = /\b(10\.[\w.]+\/[^\/\s]+)\.?\b/igm; + const DOIre = /\b(10\.[\w.]+\/[^\s]+)\.?\b/igm; const DOIXPath = "//text()[contains(., '10.')]"; DOIre.lastMatch = 0;