parse-domain
parse-domain copied to clipboard
Incorrect parsing of wildcard rule
When attempting to parse 'salesforce.com' domain ends up being null
const { domain } = parseDomain('salesforce.com');
Thanks for submitting it. This is actually a bug. The salesforce rule contains a * and there are a few ambiguities as to how this should be handled. Here is the relevant issue: https://github.com/publicsuffix/list/issues/694
I don't know when I'll get to it. You are welcome to open a PR.