ctavan/express-validator — pull request #9 by rapee (2012-04-25 02:54:13+00:00)
Title: Fix chaining validators

https://github.com/chriso/node-validator/commit/3bca87306e43572ba3643e56
6c662f474747466c
Above commit from node-validator@0.4.6-2 rendered express-validator
buggy when chaining validators got error. Required to return the validator itself instead of undefined.

Example:
// Error if isInt() assertion failed, returning undefined
req.assert('zipcode', 'not zipcode').isInt().len(7);