www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit e0e4699c3e33fd9dcb9f00ab2ddb440067ebd9a9
parent bb7ee9b436e5a33aeb22edde51ef3e2465485ca9
Author: aurimasv <aurimas.dev@gmail.com>
Date:   Sat, 22 Sep 2012 18:43:13 -0500

Fix cleanDOI

Conflicts:
	chrome/content/zotero/xpcom/utilities.js

Diffstat:
Mchrome/content/zotero/xpcom/utilities.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -262,7 +262,8 @@ Zotero.Utilities = { throw "cleanDOI: argument must be a string"; } - return x.match(/10\.[0-9]{4,}\/[^\s]*[^\s\.,]/); + var doi = x.match(/10\.[0-9]{4,}\/[^\s]*[^\s\.,]/); + return doi ? doi[0] : null; }, /**