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