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

arXiv replaces any URL in the text of the abstract with a link with text "this http url"; it seems the authors did not know this and just embedded a bare URL in their abstract.


I think it mistook a typo that didn't add a space after a sentence.


I think this is the relevant code:

    TLDS = "[a-z][a-z]+" 
https://github.com/arXiv/arxiv-base/blob/develop/arxiv/base/...

A more restrictive TLD list would have prevented this, but I certainly don't want to be the one to add new TLDs all the time, so I can see why the code looks like it does.


Mozilla has a list, https://publicsuffix.org/list/, relatively easy to update. I'm sure there is some Python wrapper library they could use.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: