ctavan/express-validator — pull request #4 by TroyGoode (2011-12-30 19:21:05+00:00)
Title: exporting Validator & Filter references

I wanted to add a sanitize method for "toLowerCase" (so that I could string it together with the rest of the included sanitizers), but it looks like there is no easy way of doing so when using express-validator because the Filter object isn't exposed. This patch exports both the Filter and Validator so folks like me can easily do this:

```javascript
var expressValidator = require('express-validator');

expressValidator.Filter.prototype.toLowerCase = function(){
this.modify(this.str.toLowerCase());
return this.str;
};
```

... unless there is an easy way to do this already?