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 079743a commit e8abfd3
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 @@ -8,7 +8,7 @@ const messages = require("../lib/messages");

// Helper function to extract mailing list name
function extractMailingListName(mailingList) {
if (mailingList.includes('@')) {
if (mailingList.includes("@")) {
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 e8abfd3

Please sign in to comment.