This should cover more dashes. E.g. "DEANE-PETER BAKER" at http://onlinelibrary.wiley.com/doi/10.1111/j.1468-5930.2011.00548.x/abstract
This commit is contained in:
parent
b3f8330498
commit
6d723d7e8c
|
@ -628,7 +628,7 @@ Zotero.Utilities = {
|
||||||
"down", "as"];
|
"down", "as"];
|
||||||
|
|
||||||
// this may only match a single character
|
// this may only match a single character
|
||||||
const delimiterRegexp = /([ \/\-–—])/;
|
const delimiterRegexp = /([ \/\u002D\u00AD\u2010-\u2015\u2212\u2E3A\u2E3B])/;
|
||||||
|
|
||||||
string = this.trimInternal(string);
|
string = this.trimInternal(string);
|
||||||
string = string.replace(/ : /g, ": ");
|
string = string.replace(/ : /g, ": ");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user