Skip to content

Commit

Permalink
#984: fixed issue with email validation
Browse files Browse the repository at this point in the history
  • Loading branch information
phjulia committed Sep 3, 2023
1 parent c18e6ef commit 7b0de99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/util/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const Cli = {
name: 'updateNotificationNotes',
message: `Please enter email addresses separated by a comma:`,
// eslint-disable-next-line jsdoc/require-jsdoc
validate: function (emails) {
const response = emails
filter: function (emails) {
return emails
.split(',')
.map((email) => {
if (!Util.emailValidator(email)) {
Expand All @@ -83,7 +83,6 @@ const Cli = {
return email.trim();
})
.filter((email) => Util.emailValidator(email));
return response.length > 0;
},
}
);
Expand Down

0 comments on commit 7b0de99

Please sign in to comment.