Don't allow periods and commas at the end of DOIs

This commit is contained in:
aurimasv 2012-04-04 23:00:24 -05:00
parent a9d32d0701
commit 1477893a84

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\.[^\s\/]+\/[^\s]*[^\s\.,]/);
},
/**