﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25452	Email validation for domain `gmail.-com` is considered valid	Paul Hallett	Anton Baklanov	"When entering an email like ""test@gmail.-com"" the email validator returns True.

Particularly, the `validate_domain_part` allows domains with a hyphen character in the TLD:

{{{
from django.core.validators import validate_email
validate_email.validate_domain_part('gmail.-com')
True
}}}

Nearly all other special characters return correctly:

{{{
from django.core.validators import validate_email
validate_email.validate_domain_part('gmail._com')
False
}}}

Unless my knowledge of valid TLDs is wrong, I don't think this is correct :("	Bug	closed	Forms	1.8	Normal	wontfix		cmawebsite@… dheeru.rathor14@…	Accepted	1	0	0	1	0	0
