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

This commit is contained in:
Dan Stillman 2010-01-05 09:07:50 +00:00
parent 646c35648f
commit 861543d453

View file

@ -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;