Skip to content

Commit

Permalink
Merge pull request #422 from ArielBlanco1990/HCC-Issue-421-Email-Vali…
Browse files Browse the repository at this point in the history
…dation-Could-be-Improved

Updated the Regex method. Issue #421 Fixed
  • Loading branch information
WillStrohl authored Oct 24, 2022
2 parents 8e912f5 + 7fbfc25 commit 7fae564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Hotcakes.Web/Validation/ValidationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace Hotcakes.Web.Validation
public class ValidationHelper
{
public const string EmailValidationRegex =
@"^(?("")("".+?(?<!\\)""@)|(([0-9a-z]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-z])@))" +
@"^(?("")("".+?(?<!\\)""@)|(([0-9a-z_]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-z_])@))" +
@"(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-z][-\w]*[0-9a-z]*\.)+[a-z0-9][\-a-z0-9]{0,22}[a-z0-9]))$";

public static void Required(string errorMessage, string propertyValue, List<RuleViolation> violations,
Expand Down

0 comments on commit 7fae564

Please sign in to comment.