You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.
TLDExtract uses TLDDatabase which uses PublicSuffix List as single source of truth. PSL has two sections: ICANN and private domains. So, when you set TLDExtract's parsing mode it operates with determined sections.
blogspot.com is defined in private section, so it's private domain. If don't need private domains in your result, you need to set parsing mode:
$extract = newExtract(null, null, Extract::MODE_ALLOW_ICCAN);
$result = $extract->parse('test.github.com');
// of in fuctiontld_extract('test.github.com', Extract::MODE_ALLOW_ICCAN);
Howerer, I agree that getRegistrableDomain() returns an incorrect result without parsing options, it's a priority issue for next major version.
layershifter
changed the title
Blogspot
bug(Parser): incorrect result of getRegistrableDomain()
Jan 27, 2017
This doesn't seem to work for any blogspot subdomain..
test.blogspot.com gives as registrable domain: test.blogspot.com
test.github.com gives as registrable domain: github.com
I don't understand how it would work that way?
The text was updated successfully, but these errors were encountered: