express.io
express.io copied to clipboard
if (route.indexOf(':' === -1)) bug
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) {