twitter/twitter-text-js — pull request #64 by keitaf (2012-08-02 21:23:52+00:00)
Title: Modify extract{Url, Hashtag, Cashtag}sWithIndices to not scan text

Currently extract{Url, Hashtag, Cashtag}sWithIndices() uses indexOf() to find the exact offset of each entity, which is inefficient. This will use offset returned by Regex match instead.