Update API.md

Add note about xregexp
This commit is contained in:
Aesop Wolf 2016-12-29 15:11:36 -08:00 committed by GitHub
parent 73dd46b5e3
commit f395839e2c
1 changed files with 2 additions and 0 deletions

2
API.md
View File

@ -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://github.com/slevithan/xregexp). See [this comment](https://github.com/christianalfoni/formsy-react/issues/407#issuecomment-266306783) for an example._
**isEmail**
```jsx
<MyInputComponent name="foo" validations="isEmail"/>