"How hard could it possibly be to…

"How hard could it possibly be to truncate a string while making sure it doesn't cut off any URLs or hashtags?" he asked, ignorantly. gist.github.com/searls/9d8ee42929da99ae268477eb20818da6
Truncating content to fit into a tweet-like post without accidentally truncating in the middle of a URL or a hashtag is… not fun? · GitHub