Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email addresses with TLDs longer than 6 chars are truncated #8

Open
jools-r opened this issue May 3, 2020 · 0 comments
Open

Email addresses with TLDs longer than 6 chars are truncated #8

jools-r opened this issue May 3, 2020 · 0 comments

Comments

@jools-r
Copy link

jools-r commented May 3, 2020

The email regex on line 78:

$this->email_regex = '[\w\d+_.-]+@(?:[\w\d_-]+\.)+[\w]{2,6}';
… limits TLDs to between 2 and 6 chars.

Many of the newer TLDs are, however, longer. This stackoverflow thread (albeit a few years old) says the longest current TLD is 24 chars, though the longest one mentioned in the list there – ".vermögensberatung" – is 18 chars.

Either way, it is resolved by increasing the 6 in {2,6} to a higher value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant