slightly adjust regex

This commit is contained in:
adam3smith 2014-01-05 10:53:30 -07:00
parent 875567dbc9
commit 49ecb8ecac

View file

@ -612,7 +612,7 @@ Zotero.Cite.System.prototype = {
if(typeof extra === "string") {
var m = /(?:^|\n)PMID:\s*([0-9]+)/.exec(extra);
if(m) cslItem.PMID = m[1];
m = /(?:^|\n)PMCID:\s*((PMC)?[0-9]+)/.exec(extra);
m = /(?:^|\n)PMCID:\s*((?:PMC)?[0-9]+)/.exec(extra);
if(m) cslItem.PMCID = m[1];
}