Skip to content

Commit

Permalink
Update routes/mails.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasCharrier authored Oct 2, 2024
1 parent cc341d0 commit 77a8fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/mails.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const messages = require("../lib/messages");
// Helper function to extract mailing list name
function extractMailingListName(mailingList) {
if (mailingList.includes('@')) {
return mailingList.split('@')[0]; // Extracts the part before the '@'
return mailingList.split("@'"[0]; // Extracts the part before the '@'
}
return mailingList; // Returns the mailing list as is if it doesn't contain '@'
}
Expand Down

0 comments on commit 77a8fb4

Please sign in to comment.