API reference > @kontsedal/olas-core > email
email() function
Reject strings that don't look like an email. Empty / null pass (use with required to forbid).
Signature:
typescript
email: (message?: string) => Validator<string>Parameters
Parameter | Type | Description |
|---|---|---|
message | string | (Optional) |
Returns:
Validator<string>