mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-06 21:05:24 +02:00
Remove "et al[.]" in author cleanup
This commit is contained in:
@@ -462,6 +462,8 @@ function cleanAuthorForCompares(author) {
|
||||
cleanAuthor = cleanAuthor.replace(/([a-z])\.([a-z])/g, '$1. $2')
|
||||
// remove middle initials
|
||||
cleanAuthor = cleanAuthor.replace(/(?<=\w\w)(\s+[a-z]\.?)+(?=\s+\w\w)/g, '')
|
||||
// remove et al.
|
||||
cleanAuthor = cleanAuthor.replace(/et al\.?/g, '')
|
||||
return cleanAuthor
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user