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:
Никита Фролов 2024-08-09 17:25:11 +05:00
commit 453f493e0b

View File

@ -35,7 +35,7 @@ public class ContactDto : IId
/// <summary> /// <summary>
/// Email /// Email
/// </summary> /// </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; } public string? Email { get; set; }
/// <summary> /// <summary>