We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following URL cannot be parsed because it has an underscore in the subdomain.
const parseResult = parseDomain(fromUrl("https://stackadapt_public.s3.amazonaws.com/icons/adchoices/adchoices.png"));
https://stackoverflow.com/questions/2180465/can-domain-name-subdomains-have-an-underscore-in-it
The text was updated successfully, but these errors were encountered:
Hi Peter 👋
we talked about this issue in #134
There's a debate whether underscores are valid or not 😁. If you want/need to support it, you can relax the validation:
import { parseDomain, Validation } from "parse-domain"; const parseResult = parseDomain("_jabber._tcp.gmail.com", { validation: Validation.Lax, });
See also https://github.com/peerigon/parse-domain#-export-validation
Sorry, something went wrong.
That's great to know. Thanks for following up. I'll try and relax the validations.
No branches or pull requests
The following URL cannot be parsed because it has an underscore in the subdomain.
const parseResult = parseDomain(fromUrl("https://stackadapt_public.s3.amazonaws.com/icons/adchoices/adchoices.png"));
https://stackoverflow.com/questions/2180465/can-domain-name-subdomains-have-an-underscore-in-it
The text was updated successfully, but these errors were encountered: