Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Not detecting mentions with mixed cases #2
Certain mentions are not getting replaced. This because the mentions screen_name are converted to lowercase before doing a replace. For username mentions that mix cases, the replace will fail. Fixed it locally using a regex. Needs a test before pushing to remote.
var regex = new RegExp('@' + userObj.screen_name, 'gi' );