fix email validator

This commit is contained in:
2023-10-16 15:34:58 +02:00
parent 843c6d5990
commit 158ec20f63
+2 -2
View File
@@ -18,9 +18,9 @@ public class EmailValidator<T> : PropertyValidator<T, string>, IEmailValidator
public static bool ValidateEmail(string value)
{
if (value == null)
if (value.IsNullOrWhiteSpace())
{
return false;
return true;
}
int index = value.IndexOf(KLAMMERAFFE);