Skip to content

Commit

Permalink
Update API.md
Browse files Browse the repository at this point in the history
Add note about xregexp
  • Loading branch information
aesopwolf authored Dec 29, 2016
1 parent 73dd46b commit f395839
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@ Formsy.addValidationRule('isMoreThan', function (values, value, otherField) {
```
Returns true if the value is thruthful

_For more complicated regular expressions (emoji, international characters) you can use [xregexp](https:/slevithan/xregexp). See [this comment](https:/christianalfoni/formsy-react/issues/407#issuecomment-266306783) for an example._

**isEmail**
```jsx
<MyInputComponent name="foo" validations="isEmail"/>
Expand Down

0 comments on commit f395839

Please sign in to comment.