Skip to content

Commit

Permalink
Bump version to v0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ctavan committed Aug 20, 2012
1 parent 521e50b commit 1fb5b56
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,26 @@ Alternatively you can use dot-notation to specify nested fields to be checked:
req.assert(['user', 'fields', 'email'], 'valid email required').isEmail();
```

### Regex routes

Express allows you to define regex routes like:

```javascript
app.get(/\/test(\d+)/, function() {});
```

You can validate the extracted matches like this:

```javascript
req.assert(0, 'Not a three-digit integer.').len(3, 3).isInt();
```


## Changelog

### v0.2.4
- Support for regex routes (@Cecchi)

### v0.2.3
- Fix checkHeader() (@pimguilherme)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"Chris O'Hara <[email protected]>",
"@orfaust"
],
"version": "0.2.3",
"version": "0.2.4",
"homepage": "https://github.com/ctavan/express-validator",
"repository": {
"type": "git",
Expand Down

0 comments on commit 1fb5b56

Please sign in to comment.