Fix multiple replacement in captializeTitles in Chrome/Safari
This commit is contained in:
parent
e37f4e3215
commit
b74cfb4a70
1 changed files with 1 additions and 1 deletions
|
@ -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 "";
|
||||
|
||||
|
|
Loading…
Reference in a new issue