twitter-text-rb
twitter-text-rb copied to clipboard
A library that does auto linking and extraction of usernames, lists and hashtags in tweets
Need conformance branch merged before this branch gets merged
We talked about adding a rake task which automates TLD updates. Here is the first version. I'm looking for feedback, happy to make changes. My pull request here was generated...
...matchers. This conversion is done by Transpec 1.13.1 with the following command: transpec - 351 conversions from: obj.should to: expect(obj).to - 220 conversions from: == expected to: eq(expected) - 28...
`tweet_length` should normalize line breaks of the string. eg. twee length of `hello\n` of `hello\r\n` should be equal. I think same thing happen on twitter.com side.
Is there a way to not autolink URLs? From what I understand, twitter-text-rb isn't really meant for URLs, so I prefer letting https://github.com/vmg/rinku deal with that.
A conformance spec is currently broken on `master`. ``` 1) Failure: test_urls Autolink URLs with unicode chars in them(ConformanceTest) [test/conformance_test.rb:126]: expected but was ``` In this case, the unicode characters...
Latin: $$$ Full width: $$$ Small: ﹩﹩﹩ (We could consider the small size hashtag add too) Should be a simple add here: https://github.com/twitter/twitter-text-rb/blob/master/lib/twitter-text/regex.rb#L284 We already do this for hashtags elsewhere:...
http://www.w3.org/Addressing/URL/url-spec.txt
I am finding it difficult to use different html attributes for different entity types (i.e. url, screen name, entity, cashtag). I have ended up recreating the code here... https://github.com/twitter/twitter-text-rb/blob/v1.6.1/lib/twitter-text/autolink.rb#L67 ...to...