From d78c31eb2ba64f4b5312ce3b98d71e4abd38f968 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 24 Mar 2009 03:55:56 +0000 Subject: [PATCH] Fix URL-linking regexp a bit --- chrome/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 index a147c2a685..d7f194711c 100644 --- a/chrome/content/zotero/xpcom/csl.js +++ b/chrome/content/zotero/xpcom/csl.js @@ -412,7 +412,7 @@ Zotero.CSL.prototype.formatBibliography = function(itemSet, format) { // This should be done earlier when the data is still in variables // // Ignore URLs preceded by '>', since these are likely already links - string = string.replace(/([^>])(https?:\/\/[^\s]+)([\.">:])/g, '$1$2$3'); + string = string.replace(/([^>])(https?:\/\/[^\s]+)([\."'>:\]\)\s])/g, '$1$2$3'); string = string.replace(/(doi:[ ]*)([0-9][^\s]+[0-9])/g, '$1$2'); var span = (coins ? '  ' : '');