bjarneo / extract-domain

Extract domain name from an URL
https://www.npmjs.com/package/extract-domain
MIT License
31 stars 4 forks source link

it doesn't support (.co.ma) domain not working #14

Closed skiod closed 2 years ago

skiod commented 2 years ago

i looks like it doesn't work on this .co.ma

bjarneo commented 2 years ago

Even if you tried the tld support?

bjarneo commented 2 years ago
extractDomain(
    "https://www.example.co.ma", 
    {
        tld: true
    }
);
// "example.co.ma"