www

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

commit 861543d4533521fd13c55ad2011425b5dfb41c6b
parent 646c35648ffb74669d1c811b7ba0ca65cae22956
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  5 Jan 2010 09:07:50 +0000

Allow slash in second part of DOI, which is apparently valid (http://forums.zotero.org/discussion/10473/)


Diffstat:
Mtranslators/DOI.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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