Fix cleanDOI

Conflicts:
	chrome/content/zotero/xpcom/utilities.js
This commit is contained in:
aurimasv 2012-09-22 18:43:13 -05:00 committed by Simon Kornblith
parent bb7ee9b436
commit e0e4699c3e
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 2288e745e7c13cac7a78bb294d09cf19ad2cf23e
Subproject commit 36d26a584ac869f2dfbdd528f57141a3bbcf016f

View file

@ -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;
},
/**

@ -1 +1 @@
Subproject commit af463b24e40f0b426a40b55cf5f0d74dcab0d5b0
Subproject commit a685b279c61b5c1b1368ea7997fc2b4914eedf8a