Skip to content

Instantly share code, notes, and snippets.

@cpsubrian
Created May 16, 2012 19:43
Show Gist options
  • Save cpsubrian/2713374 to your computer and use it in GitHub Desktop.
Save cpsubrian/2713374 to your computer and use it in GitHub Desktop.
Director routing regex issue
var path = /^\/socket\.io.+/;
app.router.get(path, handler);
console.log(app.router.routes);
/* CONSOLE OUTPUT
{ '^': { 'socket\\.io.+': { get: [Function: handler] } } }
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment