Skip to content
Myr

Constructing regular expressions from route paths

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

authored by visionmedia · committed by visionmedia · parent 9310cf9 · Browse files · 2 files+47 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+47 added−4 removed

  • tests:+1 added−1 removed
  • other:+46 added−3 removed

2 files+47 added−4 removed

modified:lib/express/core.js+46 added-3 removed
modified:spec/spec.core.routing.js+1 added-1 removed
66 unmodified lines
67 -{ get('/user') }.should.throw_error68 try { get('/user') }69 catch (e){ 70 e.stack.should.include('get')71 e.stack.should.include('"/user"')71 e.stack.should.include('user')72 }73 end74 end75
2 unmodified lines