Skip to content

Conversation

@tomascohen
Copy link

This patch changes the regex for TLD validation so it requires at least one dot, with the exception of localhost

To test:
1. Pick the regression tests patch
2. Run:
$ prove t/rfc5322-compliance.t
=> FAIL: Tests fail! Invalid addresses are considered valid. Boo!
3. Pick this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Accept this patch :-D

This patch changes the regex for TLD validation so it requires at least
one dot, with the exception of `localhost`

To test:
1. Pick the regression tests patch
2. Run:
   $ prove t/rfc5322-compliance.t
=> FAIL: Tests fail! Invalid addresses are considered valid. Boo!
3. Pick this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Accept this patch :-D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant