Fixes #1526, tweaking DOI regex to not capture URL parameters

This commit is contained in:
Matt Burton 2009-07-20 17:52:54 +00:00
parent 520a89a330
commit db7db3ce02

View file

@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
"lastUpdated":"2009-01-28 18:10:00"
"lastUpdated":"2009-07-20 13:46:00"
}
function detectWeb(doc, url) {
@ -32,8 +32,8 @@ function doWeb(doc, url){
if (prefix == 'x') return namespace; else return null;
} : null;
var host = 'http://' + doc.location.host + "/";
//Zotero.debug(host);
var m = url.match(/https?:\/\/[^\/]*\/doi\/(abs|full)\/(.+)/);
Zotero.debug(host);
var m = url.match(/https?:\/\/[^\/]*\/doi\/(abs|full)\/([^\?]+)/);
var dois = new Array();
if(detectWeb(doc, url) == "multiple") { //search
var doi;