nleclerc / expressbugtest

Shows some express behaviour that does not match its doc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Express bug test

Express has a bug in how it processes routes defined with regexps. The doc says that req.params is supposed to be an array when a route is defined with a regexp. Turns out it still is an object. So either the doc is wrong or there's a bug.

Running the test

  • $ npm install
  • $ node .

About

Shows some express behaviour that does not match its doc.


Languages

Language:JavaScript 100.0%