commit
0c2b8e6016
1 changed files with 3 additions and 2 deletions
|
@ -261,8 +261,9 @@ Zotero.Utilities = {
|
||||||
if(typeof(x) != "string") {
|
if(typeof(x) != "string") {
|
||||||
throw "cleanDOI: argument must be a string";
|
throw "cleanDOI: argument must be a string";
|
||||||
}
|
}
|
||||||
|
|
||||||
return x.match(/10\.[0-9]{4,}\/[^\s]*[^\s\.,]/)[0];
|
var doi = x.match(/10\.[0-9]{4,}\/[^\s]*[^\s\.,]/);
|
||||||
|
return doi ? doi[0] : null;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue