parse-domain icon indicating copy to clipboard operation
parse-domain copied to clipboard

Incorrect parsing of wildcard rule

Open JustinAlia opened this issue 1 year ago • 1 comments

When attempting to parse 'salesforce.com' domain ends up being null

const { domain } = parseDomain('salesforce.com');

JustinAlia avatar Jun 07 '24 22:06 JustinAlia

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.

jhnns avatar Aug 11 '24 09:08 jhnns