commit c9bd1b015bc47b468d7e5c00a3477f656a56fe48 parent 2d57f0ae73799f349d4104a8de206d050543bc73 Author: Avram Lyon <ajlyon@gmail.com> Date: Sat, 22 Jan 2011 10:32:40 +0000 Trans: Fix for DOI as JID handling in JSTOR Diffstat:
| M | translators/JSTOR.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/translators/JSTOR.js b/translators/JSTOR.js @@ -76,8 +76,8 @@ function doWeb(doc, url) { var jid = RegExp.$1; Zotero.debug("JID found 1 " + jid); } - // Sometimes JSTOR uses DOIs as JID - else if (/(?:pss|stable)\/(10\.\d+\/.+)/.test(url)) { + // Sometimes JSTOR uses DOIs as JID; here we exclude "?" characters, since it's a URL + else if (/(?:pss|stable)\/(10\.\d+\/.+)(?:\?.*)/.test(url)) { Zotero.debug("URL " + url); jid = RegExp.$1; allJids.push(jid);