darcyclarke/Repo.js — pull request #27 by gregooverse (2013-06-17 21:57:46+00:00)
Title: Escaping dots in data-id pattern

If the repo has a name with dots, it causes a jQuery syntax error.
The RegEx pattern was a bit weird, deleting everything that is not alphanumeric if it is followed by a dash and an underscore.
That pretty much matches nothing.
I think the underscore and the dash were meant to be inside the RegEx class so that everything that isn't alphanumeric, a dash or an underscore has to be escaped to prevent problems in selectors using the namespace.