[BUG] Email addresses with multiple dashes are not allowed
Sybe opened this issue · comments
Sybe van Hijum commented
New bug checklist
- I have updated
truemail
to the latest version - I have read the Contribution Guidelines
- I have read the documentation
- I have searched for existing GitHub issues
Bug description
Email addresses with multiple consecutive dashes in the domain part are not allowed by the regex. For example info@truemail---website.com
. According to rfc1035 a domain with multiple dashes is allowed though
Complete output when running truemail, including the stack trace and command used
Truemail::RegexConstant::REGEX_DOMAIN_PATTERN.match?("truemail---website.com")
Vladislav Trotsenko commented
Hi, @Sybe! Thanks for your report. This fix is already in a new release. Cheers!