Skip to content
Myr

escaped regexp test

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 1286bbb · Browse files · 1 file+17 added−0 removed
This commit

State

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

Diff stats

1 file+17 added−0 removed

  • tests:+17 added−0 removed

1 file+17 added−0 removed

modified:test/app.router.js+17 added
203 unmodified lines
204 })205 })206 })207208 it('should allow escaped regexp', function(done){209 var app = express();210211 app.get('/user/\\d+', function(req, res){212 res.end('woot');213 });214215 request(app)216 .get('/user/10')217 .end(function(res){218 res.statusCode.should.equal(200);219 request(app)220 .get('/user/tj')221 .expect(404, done);222 });223 })224225 describe('*', function(){226 it('should denote a greedy capture group', function(done){227 var app = express();228
139 unmodified lines