setup: Accept emails with longer TLDs. Fixes #1540
This commit is contained in:
parent
7eae9590d6
commit
6d05c5e026
|
@ -588,7 +588,7 @@ namespace SparkleShare {
|
|||
|
||||
private bool IsValidEmail (string email)
|
||||
{
|
||||
return new Regex (@"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$", RegexOptions.IgnoreCase).IsMatch (email);
|
||||
return new Regex (@"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]+$", RegexOptions.IgnoreCase).IsMatch (email);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue