Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Correct Way to Validate Email Addresses. Parent comment
I ran a fresh install of Django to confirm and it behaves as you suggest.
Edit: Perhaps only for low digits. Hmm.
>>> from django.core.validators import EmailValidator >>> e = EmailValidator() >>> e.__call__('foo@[1.2.3.4]') >>> e.__call__('[email protected]') ValidationError: [u'Enter a valid email address.'] >>> e.__call__('[email protected]') ValidationError: [u'Enter a valid email address.'] >>> e.__call__('foo@[0.0.0.0]') >>> e.__call__('[email protected]') >>> e.__call__('foo@[10.10.10.10]') >>> e.__call__('[email protected]') >>> e.__call__('foo@[255.255.255.255]')
I ran a fresh install of Django to confirm and it behaves as you suggest.
Edit: Perhaps only for low digits. Hmm.