Skip to content
Myr

Specs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 64260a8 · Browse files · 2 files+28 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+28 added−4 removed

  • tests:+24 added−0 removed
  • other:+4 added−4 removed

2 files+28 added−4 removed

modified:lib/express.core.js+4 added-4 removed
317 unmodified lines
318 * @api public319 */320 321 routeMatches : function(route, request) {322 var conditions = [Express.routeMethod, Express.routeProvides]323 for (i = 0, len = conditions.length; i < len; ++i)324 if (!conditions[i](route, request))325 return false322 // var conditions = [Express.routeMethod, Express.routeProvides]323 // for (i = 0, len = conditions.length; i < len; ++i)324 // if (!conditions[i](route, request))325 // return false326 switch (route.path.constructor) {327 case String: return route.path == request.uri.path328 case RegExp: return !! (Express.captures = request.uri.path.match(route.path))329 }
63 unmodified lines
modified:spec/spec.routing.js+24 added