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.