Hacker News new | ask | show | jobs
by diocles 5606 days ago
The first thing I spotted was that full domains weren't showing next to the links, so for example, story 3 is currently:

  Hosni Mubarak has resigned (co.uk)
Showing just the last two sections of the domain is clearly unexpected behaviour. :) The intention is clearly "TLD plus one more section", but not all TLDs are as short as ".com".

This reminds me of the difficulties with cookie domain validation - Mozilla actually contains a hardcoded list of top-level domains: https://wiki.mozilla.org/Public_Suffix_List

So you could either copy that, or just show the domain in full.

1 comments

You got me there. Plus i noticed that also. My solution was some crappy regex thing. i obviously need to do better.