Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: