slightly adjust regex
This commit is contained in:
parent
875567dbc9
commit
49ecb8ecac
1 changed files with 1 additions and 1 deletions
|
@ -612,7 +612,7 @@ Zotero.Cite.System.prototype = {
|
||||||
if(typeof extra === "string") {
|
if(typeof extra === "string") {
|
||||||
var m = /(?:^|\n)PMID:\s*([0-9]+)/.exec(extra);
|
var m = /(?:^|\n)PMID:\s*([0-9]+)/.exec(extra);
|
||||||
if(m) cslItem.PMID = m[1];
|
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];
|
if(m) cslItem.PMCID = m[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue