www

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

commit db7db3ce029572533e4b9d2948d98f3eda8fa87c
parent 520a89a3304a5ccf848ae4e736fd551e7da951d1
Author: Matt Burton <mcburton@gmail.com>
Date:   Mon, 20 Jul 2009 17:52:54 +0000

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

Diffstat:
Mtranslators/ACS Publications.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

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