Skip to content

Instantly share code, notes, and snippets.

@jeena
Last active May 27, 2016 08:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeena/8a154b7f8f31fc832f9a701a2a7ea651 to your computer and use it in GitHub Desktop.
Save jeena/8a154b7f8f31fc832f9a701a2a7ea651 to your computer and use it in GitHub Desktop.
1234567890123456789012345678901234567890123456789012345678901234567890123456789... http://blog.rust-lang.org/2016/05/26/Rust-1.9.html more at http://localhost:3000/notes/595
[79 ][4 ][23 short url ][9 ][23 short url ]
79 + 4 + 23 + 9 + 23 = 138
but I'm getting:
[{"code"=>186, "message"=>"Status is over 140 characters."}]
@andypiper
Copy link

Replied to you on Twitter, but the calculation here should be:

79 + 4 + 23 + 9 + 31 = 146

The second URL http://localhost... will not be shortened by t.co, so the URL remains 31 characters long.

Checked using twitter-text https://github.com/twitter/twitter-text/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment