Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add test case for 2 letter top level domains #59
I've been testing a little by posting to twitter, and domains like
I just did another test and a domain
I'd hazard a guess and say that any 2 letter top level domain (
Good sleuthing! Signal to noise in tweets is often more towards noise so we only autolink if we're mostly certain it's a URL; it could be an emoticon or internet meme or have meaning in another language. Some domains are treated as especially strong signals like .com
For now, you're right, we should have clear tests. Later we can revisit which domains should link and how changes would affect a sample set of tweets.
There's presumably a list of valid TLDs in the js and other codebases. It's probably possible to tests from that.
I'd suggest that domains like