nooodle/noodleapp — pull request #96 by mattflaschen (2012-11-16 00:52:08+00:00)
Title: Optimize, simplify, and make a minor fix to getBFFs

* Only call .val() once.
* Remove char-by-char loops and reverse.
* Remove dash from regex.

In the previous code, if you type @, d, backspace, it will remember the d completions. If that's intentional, I can put it back. But it seems odd. I think @ alone should show either nothing (what this does), or a meaningful selection of all the users (e.g. the most common ones you mention).