LearnBoost/socket.io — pull request #759 by a2800276 (2012-02-21 20:13:25+00:00)
Title: get rid of regexp in `checkRequest`

Replaced ugly:

var regexp = /^\/([^\/]+)\/?([^\/]+)?\/?([^\/]+)?\/?$/

with a simple `split('/')`, this is easier to understand, and much faster. Also replaced the "string" case matching of the '/socket.io' resource via `substr` with a simpler and faster call to `indexOf` ...