Closed dennis-dean closed 3 months ago
In the current version, names containing 'and' (i.e. Brandon or Fernando) get split into two authors ('Br' and 'on' / 'Fern' and 'o').
Confirmed changing this line:
let authorSplit = author.split(/(?:,|and|&)+/).map(function (item) {
to
let authorSplit = author.split(/\s*(?:,\s| and | & )\s*/).map(function (item) {
fixes the issue.
Hey @dennis-dean, great spot, and thank you! Fixed pushed with you as a co-author.
In the current version, names containing 'and' (i.e. Brandon or Fernando) get split into two authors ('Br' and 'on' / 'Fern' and 'o').
Confirmed changing this line:
let authorSplit = author.split(/(?:,|and|&)+/).map(function (item) {
to
let authorSplit = author.split(/\s*(?:,\s| and | & )\s*/).map(function (item) {
fixes the issue.