darcyclarke / Repo.js

:page_facing_up: A plugin to embed Github repos on your site
MIT License
911 stars 83 forks source link

Escaping dots in data-id pattern #26

Closed gregooverse closed 11 years ago

gregooverse commented 11 years ago

If the repo has a name with dots, it causes a jQuery syntax error.

Having a dot in the repo name was causing me some trouble. First I had nothing loading. So I escaped the dots in the namespace with . It made the repo appear, however I couldn't load anything in a folder. Finally I simply replaced every dot with an underscore and now it seems to be working as expected.

Tested with jQuery 2.0.2.