mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-13 12:46:18 +02:00
Fix "et al" cleanup
This commit is contained in:
@ -463,7 +463,7 @@ function cleanAuthorForCompares(author) {
|
||||
// remove middle initials
|
||||
cleanAuthor = cleanAuthor.replace(/(?<=\w\w)(\s+[a-z]\.?)+(?=\s+\w\w)/g, '')
|
||||
// remove et al.
|
||||
cleanAuthor = cleanAuthor.replace(/et al\.?/g, '')
|
||||
cleanAuthor = cleanAuthor.replace(/ et al\.?(?= |$)/g, '')
|
||||
return cleanAuthor
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user