Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

docs

  • Loading branch information...
commit a9b34519d9d4537690053e1aa78536ddb4bb823f 1 parent de9dbd1
@tj tj authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/express-params.js
View
7 lib/express-params.js
@@ -23,6 +23,13 @@ exports.extend = function(app){
exports.extend.regexp(app);
};
+/**
+ * Adds `RegExp` support.
+ *
+ * @param {express.HTTPServer} app
+ * @api public
+ */
+
exports.extend.regexp = function(app){
app.param(function(name, fn){
if (fn instanceof RegExp) {
Please sign in to comment.
Something went wrong with that request. Please try again.