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

Not returning proper domain #260

Open
themithunbiswas opened this issue Jan 28, 2021 · 1 comment
Open

Not returning proper domain #260

themithunbiswas opened this issue Jan 28, 2021 · 1 comment

Comments

@themithunbiswas
Copy link

themithunbiswas commented Jan 28, 2021

var psl = require('psl');

// Parse domain without subdomain
var parsed = psl.parse('resourcehub.in.gov');
console.log(parsed.domain); // we are getting 'in.gov'

Expected output 'resourcehub.in.gov'
Please add 'in.gov' to the list.

@peterthomassen
Copy link

This project just uses the externally managed Public Suffix List (PSL), on which in.gov is not listed. Check here for how to get added.

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

2 participants