lib/tw/client/helper.rb in tw-0.3.7 vs lib/tw/client/helper.rb in tw-0.3.8
- old
+ new
@@ -7,10 +7,9 @@
def char_length_with_t_co
Tw::Conf.update_twitter_config
len = self.char_length
self.scan(Regexp.new "https?://[^\s]+").each do |url|
- puts url
len += (url =~ /^https/ ? Tw::Conf['twitter_config']['short_url_length_https'] : Tw::Conf['twitter_config']['short_url_length']) - url.char_length
end
len
end
end