twitter/twitter-text-js — pull request #58 by keitaf (2012-05-04 02:57:46+00:00)
Title: Modify tweet_length to count URL as 20/21 chars

This is based on the pull request https://github.com/twitter/twitter-text-js/pull/19

I modified it such that getTweetLength() counts HTTP or protocol-less URL as 20 characters and HTTPS URL as 21 characters.