Why is google.com converted to t.co but google.nl not?


#1

I am using the twitter-text-js code in my application to show a correct charcounter. During the testing of my implementation i came across some weird behavior. Simple urls (no protocol, no sub-domain) with a TLD of 3 or more characters are recognized as an url, but urls with an TLD of 2 characters are not recognized.

So google.com counts for 20 characters but google.nl only for 9. I see this is correct behavior in comparison with twitter.com but it is not logical.


#2

I found that on github there are two issues filed a long time ago but never got a response from Twitter.