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