Closed sergiomejicanos closed 2 years ago
withgoogle.com
is listed as public suffix and therefore treated as a top-level domain.
It's explained in the README: https://github.com/peerigon/parse-domain#%EF%B8%8F-effective-tlds--tlds-acknowledged-by-icann
@jhnns Aha! Thank you for explaining that and the link - that makes total sense. :+1:
Parsing the following domain:
I would have expected the subdomain array to include "analytics" and for the domain and TLD to be different.
Here's an example where this works correctly: