www

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

commit b74cfb4a7045d665572b86abfd2cd3516179f2a5
parent e37f4e321552126545640b7d722e154c1eea602b
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri,  1 Jul 2011 06:22:01 +0000

Fix multiple replacement in captializeTitles in Chrome/Safari


Diffstat:
Mchrome/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 @@ -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 "";