lib/requestFilter.js
function _isVoidFilterRoute(req) {
  var reqPathRegex = new RegExp(['^', req.path.replace(/\/$/, ''), '$'].join(''), 'i')
    , voidRoute
    , i;

  for (i=0; i<voidFilterRoutes.length; i++) {
    if (reqPathRegex.test(voidFilterRoutes[i])) { return true; }
  }
  return false;
}
function _isVoidFilterRoute(req) {
  var reqPathRegex = new RegExp(['^', req.path.replace(/\/$/, ''), '$'].join(''), 'i')
    , voidRoute
    , i;

  for (i=0; i<voidFilterRoutes.length; i++) {
    if (reqPathRegex.test(voidFilterRoutes[i])) { return true; }
  }
  return false;
}
function _isVoidFilterRoute ( req ) { var reqPathRegex = new RegExp ( [ '^' , req . path . replace ( / \/$ / , '' ) , '$' ] . join ( '' ) , 'i' ) , voidRoute , i ; for ( i = 0 ; i < voidFilterRoutes . length ; i ++ ) { if ( reqPathRegex . test ( voidFilterRoutes [ i ] ) ) { return true ; } } return false ; }
Checks whether the route is in the list of routes to void filtering on
@param  {http.ServerRequest} req     Node.js HTTP Server request
@return true if request headers match 'application/json', false otherwise
@return {Boolean} true if route (path) in the list of routes to void filtering on, false otherwise
@author  Tomislav Capan
Checks whether the route is in the list of routes to void filtering on