3 ms·
I think this is the relevant code: TLDS = "[a-z][a-z]+" https://github.com/arXiv/arxiv-base/blob/develop/arxiv/base/urls/links.py#L116-L123 https://githu
by johndough 2y ago
I think this is the relevant code:
TLDS = "[a-z][a-z]+"
https://github.com/arXiv/arxiv-base/blob/develop/arxiv/base/urls/links.py#L116-L123 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.
- Mathnerd314 2y agoMozilla has a list, https://publicsuffix.org/list/ https://publicsuffix.org/list/, relatively easy to update. I'm sure there is some Python wrapper library they could use.