-
Notifications
You must be signed in to change notification settings - Fork 17
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
Domains with underscores are considered as invalid #33
Comments
This appears to be what Line 537 in 149e9fd
Can we remove this check, please? |
Actually, per #7 (comment):
Nothing in the standards prevent registries from offering for registration domains containing bytes that are disallowed in hostnames, though I accept as a matter of policy most if not all do impose such a restriction. So whether this check strictly belongs in this library is not so clear. However, if it is to remain, could we instead add |
@eggyal psl sounds like a better fit for your use case. It's lower level and only checks to see if the input ends with a public suffix. It doesn't try to validate the syntax of the hostname. As a bonus it's much faster, doesn't have any dependencies and it is |
I've taken a quick look and indeed it does appear to fit the bill. Thanks @rushmorem ! |
Awesome! Thanks for the feedback. |
I believe this is now fixed, both in this crate and in |
Hello! The library fails to parse domains with underscores.
The text was updated successfully, but these errors were encountered: