After looking through the repo history I was able to find the regex (separated into multiple lines for readability):
^([a-zA-z0-9_\-\.\'\+]+)
@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))
([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$
A side note: this regex is still pretty broken with how the @[ipaddress]
is allowed.
For example this: johndoe@mydomain.111]
is registered as valid as would this: johndoe@[111.111.111.com