Fix "et al" cleanup

This commit is contained in:
mikiher 2023-11-30 21:49:24 +02:00
parent 3c6d6bf688
commit 281de48ed4

View File

@ -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
}