www

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

commit 9c8738dca09fc43b2f3e5933a2d017953ac58f85
parent 882074e84777124fcc0fbd0dcbb5356cb5890352
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 14 Jul 2009 05:36:37 +0000

Trailing letters in DOIs weren't linked in HTML bibliographies


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

diff --git a/chrome/content/zotero/xpcom/csl.js b/chrome/content/zotero/xpcom/csl.js @@ -413,7 +413,7 @@ Zotero.CSL.prototype.formatBibliography = function(itemSet, format) { // // Ignore URLs preceded by '>', since these are likely already links string = string.replace(/([^>])(https?:\/\/[^\s]+)([\."'>:\]\)\s])/g, '$1<a href="$2">$2</a>$3'); - string = string.replace(/(doi:[ ]*)([0-9][^\s]+[0-9])/g, '$1<a href="http://dx.doi.org/$2">$2</a>'); + string = string.replace(/(doi:[ ]*)(10\.[^\s]+[0-9a-zA-Z])/g, '$1<a href="http://dx.doi.org/$2">$2</a>'); var span = (coins ? ' <span class="Z3988" title="'+coins.replace("&", "&amp;", "g")+'">&nbsp;</span>' : '');