Skip to content

Commit

Permalink
style: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 2, 2024
1 parent c285165 commit eda1e39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/routes/google/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
})
Expand Down

0 comments on commit eda1e39

Please sign in to comment.