logoalt Hacker News

NAR8789today at 2:31 AM1 replyview on HN

@dang can you update the domain extraction logic for hn titles to include the 3rd level domain for .name domains? It's a little too poetically unfortunate that HN lists the domain on this article as `fraser.name`


Replies

dangtoday at 4:04 AM

Sure. We have this for countries, like "example.co.uk", so I made "name" be a country and it...just works (maybe).

You only get a first name and a last name and a .name though. You can't be robert.louis.stevenson.name - just louis.stevenson.name.

(Incidentally, this was a Claude suggestion. The change only took a couple minutes but figuring out what mechanism in the code could do this would have taken me a lot longer.)

show 1 reply