Merge pull request #1609 from Linden-Ryuujin/feature/semicolonSeperators

Support for scanning semicolon seperated author and narator lists.
This commit is contained in:
advplyr 2023-03-16 17:06:22 -05:00 committed by GitHub
commit 11ccbf1913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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