Support for scanning semicolon seperated author and narator lists.

This commit is contained in:
Linden Ryuujin 2023-03-16 21:32:38 +00:00
parent 6e8547f0c8
commit a4a334a18a

View File

@ -43,6 +43,8 @@ module.exports.parse = (nameString) => {
// Example &LF: Friedman, Milton & Friedman, Rose // Example &LF: Friedman, Milton & Friedman, Rose
if (nameString.includes('&')) { if (nameString.includes('&')) {
nameString.split('&').forEach((asa) => splitNames = splitNames.concat(asa.split(','))) nameString.split('&').forEach((asa) => splitNames = splitNames.concat(asa.split(',')))
} else if (nameString.includes(';')) {
nameString.split(';').forEach((asa) => splitNames = splitNames.concat(asa.split(',')))
} else { } else {
splitNames = nameString.split(',') splitNames = nameString.split(',')
} }