question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Email Validator to match with ASP.Net

See original GitHub issue

From 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:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lukoscommented, Jun 19, 2018

Thanks! I just realised that this issue was clicked through from the corefx project, which is why I was confused. #awkward

0reactions
JeremySkinnercommented, Jun 19, 2018

@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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found