twitter/twitter-text-rb — pull request #17 by keitaf (2011-11-17 07:50:40+00:00)
Title: Modify Regex to extract Hashtag and @mention before new line.

Ruby's Regex "^" matches newlines, and because of that, currently twitter-text-rb does not extract hashtag or @mention followed by newline correctly. This will change "^" to "\A", and "$" to "\Z", so that they only match the beginning/end of string.