Skip to content

Commit

Permalink
Async Validation (resolves #6)
Browse files Browse the repository at this point in the history
Added stripTags & stripEnts
  • Loading branch information
ClickerMonkey committed Nov 23, 2016
1 parent f64cefc commit ab85097
Show file tree
Hide file tree
Showing 40 changed files with 1,423 additions and 731 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ rekord-validation adds rules, expressions, transforms, and custom validation fun

The easiest way to install rekord-validation is through bower via `bower install rekord-validation`.

- rekord-validation.js is `45KB` (`7.6KB` gzipped)
- rekord-validation.min.js is `18KB` (`5.3KB` gzipped)
- rekord-validation.js is `48KB` (`8.32KB` gzipped)
- rekord-validation.min.js is `19KB` (`5.69KB` gzipped)

### Example

Expand All @@ -34,7 +34,7 @@ var Task = Rekord({
required: true // the rules must pass to $save model instances
},
methods: {
$custom: function(value, getAlias, specifiedMessage) {
$custom: function(value, getAlias, specifiedMessage, chain) {
if ( value.length > 140 ) {
return 'Details can be no larger than 140 characters.'
}
Expand Down
7 changes: 5 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rekord-validation",
"version": "1.4.4",
"version": "1.5.0",
"homepage": "https://github.com/Rekord/rekord-validation",
"authors": [
"Philip Diffenderfer <[email protected]>"
Expand All @@ -23,6 +23,9 @@
"tests"
],
"dependencies": {
"rekord": "~1.4.0"
"rekord": "~1.5.0"
},
"devDependencies": {
"qunit": "^1.23.1"
}
}
Loading

0 comments on commit ab85097

Please sign in to comment.