Skip to content

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

@jools-r

Description

@jools-r

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions