Merge pull request #88 from aurimasv/capTitle

capitalizeTitle - added additional dashes into regex
This commit is contained in:
Simon Kornblith 2012-03-24 17:58:50 -07:00
commit c9f456f2e9

View file

@ -628,7 +628,7 @@ Zotero.Utilities = {
"down", "as"];
// this may only match a single character
const delimiterRegexp = /([ \/\-–—])/;
const delimiterRegexp = /([ \/\u002D\u00AD\u2010-\u2015\u2212\u2E3A\u2E3B])/;
string = this.trimInternal(string);
string = string.replace(/ : /g, ": ");