truemail-rb / truemail

🚀 Configurable framework agnostic plain Ruby 📨 email validator/verifier. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists.

Home Page:https://truemail-rb.org/truemail-gem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Email addresses with multiple dashes are not allowed

Sybe opened this issue · comments

New bug checklist

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

Hi, @Sybe! Thanks for your report. This fix is already in a new release. Cheers!