Merge pull request #92 from aurimasv/cleanDOI

[cleanDOI] Don't allow periods or commas at the end of DOIs
This commit is contained in:
Simon Kornblith 2012-04-05 00:00:34 -07:00
commit 3810759786

View file

@ -262,7 +262,7 @@ Zotero.Utilities = {
throw "cleanDOI: argument must be a string";
}
return x.match(/10\.[^\s\/]+\/[^\s]+/);
return x.match(/10\.[0-9]{4,}\/[^\s]*[^\s\.,]/);
},
/**