Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add domain validation #140

Closed

Conversation

zhangmingkai4315
Copy link

validator crate has a private method validate_domain_part() in email.rs, this method maybe enough for email validation, but as far as i know, it not suitable for all domain names, like FQDN and SRV type domain name, such as _jabber._tcp.gmail.com , so i think it may be useful to write a independent method for domain validate only.

There are some RFC for domain name definition and modification, such as RFC 1034,RFC 1035 and RFC 2181.

@Keats
Copy link
Owner

Keats commented Dec 28, 2020

The current domain validation does miss some valid domains since it follows the HTML spec which doesn't cover 100% of valid emails. I don't think I want to add more though, or maybe just fix the existing regex to fit more cases.

@krojew
Copy link
Contributor

krojew commented Mar 30, 2022

It would be useful to also add derive support to quoting.rs.

@krojew krojew mentioned this pull request Mar 30, 2022
@Keats Keats closed this Aug 21, 2024
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.

4 participants