commit 1477893a84add7bb10f2c7b11c0192ee50b806b4 parent a9d32d0701c08b5c3261626d16a388e435001226 Author: aurimasv <aurimas.dev@gmail.com> Date: Wed, 4 Apr 2012 23:00:24 -0500 Don't allow periods and commas at the end of DOIs Diffstat:
| M | chrome/content/zotero/xpcom/utilities.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -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\.,]/); }, /**