From 1477893a84add7bb10f2c7b11c0192ee50b806b4 Mon Sep 17 00:00:00 2001 From: aurimasv Date: Wed, 4 Apr 2012 23:00:24 -0500 Subject: [PATCH] Don't allow periods and commas at the end of DOIs --- 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 index d94c55eb3e..5b71866a18 100644 --- 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\.,]/); }, /**