Skip to content

Commit

Permalink
fix(mail(js)): fix validation of email addresses
Browse files Browse the repository at this point in the history
This fixes a js error that was introduced by
67ccf74 If applied, this fix allows
users to copy and paste multiple email addresses into the recipient
fields, e.g., from a excel file.
  • Loading branch information
cheriimoya committed Oct 20, 2022
1 parent 5fb82fe commit d194b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UI/WebServerResources/js/Common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ String.prototype.formatted = function() {
};

String.prototype.isValidEmail = function(strict) {
var result = emailRE.test(this);
var result = String.emailRE.test(this);

if (strict && result) {
result = emailRE.exec(this)[0] == this;
result = String.emailRE.exec(this)[0] == this;
}

return result;
Expand Down

0 comments on commit d194b1e

Please sign in to comment.