style: auto format

This commit is contained in:
github-actions[bot]
2024-11-02 15:06:23 +00:00
parent c28516582a
commit eda1e39ccd
+3 -1
View File
@@ -80,7 +80,9 @@ async function handler(ctx) {
.map((author) => author.trim())
.filter((author) => {
// Filter out empty strings and common suffixes
if (!author) {return false;}
if (!author) {
return false;
}
const suffixes = ['et al', 'et al.'];
return !suffixes.some((suffix) => author.toLowerCase().endsWith(suffix));
})