Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

export invalidParamReturnValue so it may be overridden

  • Loading branch information...
commit cc5015c895c4dd94dcaf4120825db9e2bdc8ccdd 1 parent 88bff01
TJ Holowaychuk authored May 23, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/express-params.js
4  lib/express-params.js
@@ -37,7 +37,7 @@ exports.extend.returnValue = function(app){
37 37
       return function(req, res, next){
38 38
         var val = req.params[name];
39 39
         val = req.params[name] = fn(val);
40  
-        if (invalidParamReturnValue(val)) {
  40
+        if (exports.invalidParamReturnValue(val)) {
41 41
           next('route');
42 42
         } else {
43 43
           next();
@@ -59,7 +59,7 @@ exports.extend.returnValue = function(app){
59 59
  * @api private
60 60
  */
61 61
 
62  
-function invalidParamReturnValue(val){
  62
+exports.invalidParamReturnValue = function(val){
63 63
   return null == val
64 64
     || false === val
65 65
     || ('number' == typeof val && isNaN(val));

0 notes on commit cc5015c

Please sign in to comment.
Something went wrong with that request. Please try again.