From db7db3ce029572533e4b9d2948d98f3eda8fa87c Mon Sep 17 00:00:00 2001 From: Matt Burton Date: Mon, 20 Jul 2009 17:52:54 +0000 Subject: [PATCH] Fixes #1526, tweaking DOI regex to not capture URL parameters --- translators/ACS Publications.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/translators/ACS Publications.js b/translators/ACS Publications.js index 720b55cc7e..5f315175ad 100644 --- a/translators/ACS Publications.js +++ b/translators/ACS Publications.js @@ -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;