We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b880ac commit 551ee27Copy full SHA for 551ee27
NorthwindCRUD/Models/Dtos/AddressDto.cs
@@ -20,7 +20,7 @@ public class AddressDto : IAddress
20
[StringLength(50, ErrorMessage = "Country cannot exceed 50 characters.")]
21
public string? Country { get; set; }
22
23
- [RegularExpression(@"^\+?[1-9]\d{1,14}$", ErrorMessage = "Phone number is not valid.")]
+ [RegularExpression(@"^\+?[0-9][0-9\-]{1,14}$", ErrorMessage = "Phone number is not valid.")]
24
public string? Phone { get; set; }
25
}
26
0 commit comments