mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 18:24:46 +02:00
Remove "et al[.]" in author cleanup
This commit is contained in:
parent
80458e24bd
commit
8ac0ce399f
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue