Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

Commit

Permalink
docs(README): fix typo, and explanation ... orz
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Feb 12, 2016
1 parent d603832 commit afa5eb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@ the below the `email` custom validator exmpale:

```javascript
// Register custom validator function.
// - first argument: file value (In example, `val`)
// - second argument: rule value, optional. this argument passing from was specified with v-validate
// - first argument: field value
// - second argument: rule value (optional). this argument is being passed from specified validator rule with v-validate
Vue.validator('email', function (val/*,rule*/) {
return /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(val)
})
Expand Down Expand Up @@ -818,7 +818,7 @@ the below the `numeric` or `url` custom validator exmpale:
new Vue({
el: '#app',
validators: { // `numeric` and `url` custom validator is local registration
numeric: function (val/*,ruel*/) {
numeric: function (val/*,rule*/) {
return /^[-+]?[0-9]+$/.test(val)
},
url: function (val) {
Expand Down

0 comments on commit afa5eb1

Please sign in to comment.