From b74cfb4a7045d665572b86abfd2cd3516179f2a5 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 1 Jul 2011 06:22:01 +0000 Subject: [PATCH] Fix multiple replacement in captializeTitles in Chrome/Safari --- 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 b667f23a7..5a9e8fdd7 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -497,7 +497,7 @@ Zotero.Utilities = { const delimiterRegexp = /([ \/\-–—])/; string = this.trimInternal(string); - string = string.replace(" : ", ": ", "g"); + string = string.replace(/ : /g, ": "); if(!Zotero.Prefs.get('capitalizeTitles') && !force) return string; if(!string) return "";