Skip to content

Commit

Permalink
docs: add usage examples of minDomainAtoms (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
rawpixel-vincent committed Oct 15, 2020
1 parent 1f134c5 commit 229def1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ false
65
> Isemail.validate('test@', {errorLevel: true});
131
> Isemail.validate('test@iana', {minDomainAtoms: 1}); // default
true
> Isemail.validate('test@iana', {minDomainAtoms: 2});
false
> Isemail.validate('test@iana.io', {minDomainAtoms: 2});
true
```

<sup name="footnote-1">&#91;1&#93;</sup>: if this badge indicates the build is passing, then isemail has 100% code coverage.
Expand Down

0 comments on commit 229def1

Please sign in to comment.