Email field outdated

There probably now about 1000 different Top Level Domains to choose from.

The length of them has also increased.

Trying to put some of the newer ones into the email field is resulting in failure indicating it is not a valid email address:

To address this, a small change is needed in /system/libraries/Email.php on line 763.

return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $address)) ? FALSE : TRUE;

The 6 just needs to be changed to a larger number. I can submit a pull request for this if you wish.

@KNERD Yes, please. Go ahead.

Okay, done

Thanks, merged

1 Like

There are a couple of files I missed. I added another pull request

Merged

1 Like