Beyond adding an HTML5 email type to the input, the current regex hasnt been updated since at least the past 5 years (that I'm aware of) is:
#^[+_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$#i
It looks like it's only accepting a TLD of 2 - 4 chars. "paris" is 5, so it is determined to be invalid.
Using regex for modern email validation is quite messy. Moving forward, PHP will be used to handle submitted HTML from the end user.
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
return array(false, 'BAD_FORMAT');
}
https://www.php.net/manual/en/function.filter-var.php...and HTML5 input type=email will catch the user entry from the input field.
In Opera it's sufficient to enter just *@* for the input to be accepted. In Safari, Chrome and Firefox you need to enter at least *@-.-. Obviously neither example is very limiting, but it will prevent people from entering completely wrong values, such as phone number, strings with multiple '@'s or spaces.
Thanks for catching and reporting this. it should be corrected with the UBB.thread 7.7.2 release!