Fix multiple replacement in captializeTitles in Chrome/Safari

This commit is contained in:
Simon Kornblith 2011-07-01 06:22:01 +00:00
parent e37f4e3215
commit b74cfb4a70

View file

@ -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 "";