Fix cleanDOI
This commit is contained in:
parent
cff1bac7b9
commit
c5061de782
|
@ -262,7 +262,8 @@ Zotero.Utilities = {
|
||||||
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…
Reference in New Issue
Block a user