forked from ddrilling/AsbCloudServer
Merge pull request 'Поправлено регулярное выражение для поля email в контактах' (#306) from fix/regexp-email-validation into dev
Reviewed-on: http://test.digitaldrilling.ru:8080/DDrilling/AsbCloudServer/pulls/306
This commit is contained in:
commit
453f493e0b
@ -35,7 +35,7 @@ public class ContactDto : IId
|
||||
/// <summary>
|
||||
/// Email
|
||||
/// </summary>
|
||||
[RegularExpression(@"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$", ErrorMessage = "Некорректный email")]
|
||||
[RegularExpression(@"^[a-zA-Z0-9_\-\.]{3,128}@[a-zA-Z0-9_\-\.]{2,128}\.[a-zA-Z]{1,32}$", ErrorMessage = "Некорректный email")]
|
||||
public string? Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user