Remove "et al[.]" in author cleanup

This commit is contained in:
mikiher 2023-11-30 21:17:13 +02:00
parent 80458e24bd
commit 8ac0ce399f
2 changed files with 3 additions and 0 deletions

View file

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