Skip to content

Commit f395839

Browse files
authored
Update API.md
Add note about xregexp
1 parent 73dd46b commit f395839

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

API.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,8 @@ Formsy.addValidationRule('isMoreThan', function (values, value, otherField) {
659659
```
660660
Returns true if the value is thruthful
661661

662+
_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._
663+
662664
**isEmail**
663665
```jsx
664666
<MyInputComponent name="foo" validations="isEmail"/>

0 commit comments

Comments
 (0)