Require at least 4 digits for the prefix

This commit is contained in:
aurimasv 2012-04-05 01:57:22 -05:00
parent 1477893a84
commit 662ab87d7e

View file

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