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

TLD parsing options #499

Open
sammacbeth opened this issue Feb 4, 2021 · 0 comments
Open

TLD parsing options #499

sammacbeth opened this issue Feb 4, 2021 · 0 comments

Comments

@sammacbeth
Copy link
Contributor

Currently the hostname is parsed using default tldts options. In practice we may want to pass options such as allowPrivateDomains when parsing the hostname.

We could, for example, add an optional argument to the URL constructor with the tldts IOptions for tldts.parse. Alternatively we could expose a global that sets the options for all URLs created by the application.

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

No branches or pull requests

1 participant