mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 11:25:24 +00:00
Merge pull request #328 from helsinki-systems/fix/mail-validation
fix(mail(js)): fix validation of email addresses
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user