Email Validator to match with ASP.Net
See original GitHub issueFrom issues #769 and #766 you have stated that FluentValidation
is intentionally match with ASP.NET’s implementation, While ever since ASP.NET core 1.0, EmailAddressAttribute no longer uses Regex.
What is your plan for Email Validator to match with latest implementation of ASP.NET core? Since FluentValidation have different behaviour than ASP.NET now.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Email Address Validation for ASP.NET
The best way to confirm an email address is to email the user, and get the user to reply by clicking on a...
Read more >Validate Email Address using Regular Expression ...
Validate Email Address using Regular Expression Validator in ASP.Net · 1. ControlToValidate – ID of the TextBox control to be validated. · 2....
Read more >How to verify that strings are in valid email format
Read an example of how a regular expression verifies that strings are in a valid email format in .NET.
Read more >ASP.NET Email Validation Using RegularExpressionValidator ...
ASP.NET RegularExpressionValidator is used to check input email is valid or not. The CompareValidator control belongs to System.Web.UI.WebControls .
Read more >How to Validate Email Address in C# - Code Maze
Another approach we can use to validate email addresses is using the FluentValidation NuGet package. ... The EmailFluentValidator class inherits ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks! I just realised that this issue was clicked through from the corefx project, which is why I was confused. #awkward
@lukos The behaviour in FluentValidation has not changed. FluentValidation continues to use the same regex it always has done, even when using AspNetCore.
It’s the ASP.NET Core
EmailAddressAttribute
that’s changed its behaviour (part of MVC itself) to just check for an @. That’s nothing to do with FluentValidation.If you continue to use FluentValidation, for performing validation the behaviour will remain the same.
If you have comments about the attribute, then you should address those comments to the ASP.NET team (http://github.com/aspnet/mvc)