setup: Accept emails with longer TLDs. Fixes #1540

This commit is contained in:
Hylke Bons 2014-07-23 19:03:16 +01:00
parent 7eae9590d6
commit 6d05c5e026

View file

@ -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);
}
}
}