Skip to content

Comment on Nook Browserparent

Comments

the only TLDs with two components are `"co.uk", "co.jp", "com.au", "co.nz", "com.br".

Is this sarcasm? The public suffix list will give some ideas for omissions: https://publicsuffix.org/list/public_suffix_list.dat

That was me pointing out what was plainly implemented in the code snippet I linked. It is obviously nowhere near the truth.

and the only TLDs with two components are `"co.uk", "co.jp", "com.au", "co.nz", "com.br"`?

There are a plenty of reasons why you might want to treat the most common two part TLDs as special, while not doing that with the less common ones.

And those reasons would be...?

Right; top-level comment is saying that those are all missing from the linked code.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.