fix(mail(js)): fix validation of email addresses

This fixes a js error that was introduced by
67ccf748ed If applied, this fix allows
users to copy and paste multiple email addresses into the recipient
fields, e.g., from a excel file.
This commit is contained in:
Max Hausch
2022-10-20 10:52:28 +02:00
parent 5fb82fe414
commit d194b1e921
+2 -2
View File
@@ -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;