express.io icon indicating copy to clipboard operation
express.io copied to clipboard

if (route.indexOf(':' === -1)) bug

Open thomaswhite opened this issue 12 years ago • 0 comments

I was trying to redirect from a http request to a socket route using req.io.route('import:add') when I discovered bug at the body of io.route:

 if ((options != null ? options.trigger : void 0) === true) {
    if (route.indexOf(':' === -1)) {
                                   ^

It should be: if (route.indexOf(':)' === -1) {

thomaswhite avatar Aug 23 '13 13:08 thomaswhite