Closed hiteshbedre closed 1 year ago
You should add this as another GeneratedRegex
[GeneratedRegex(@"[a-z0-9\.\-!#$%&'+/=?^_`{|}~""\\]+(?<!\.)@([a-z0-9\-_]+\.)+[a-z0-9]{2,}\b(?<!\s)", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.Compiled)]
public static partial Regex EmailRegex();
[GeneratedRegex(@"\.\.|\*|\.@|^\.|@-", RegexOptions.Compiled)]
public static partial Regex InvalidRegex();
@GStefanowich I will accommodate the suggestion in upcoming pull request.
@hiteshbedre I made the change already in 99a360c, so it's all set
Fixes: https://github.com/HaveIBeenPwned/EmailAddressExtractor/issues/5
foobar@c_m.com
foobar@_.com