email
All checks were successful
Lint / lint (push) Successful in 11s

This commit is contained in:
Julien Valverdé
2024-09-08 01:35:34 +02:00
parent fcb11956da
commit 4e53c81927
2 changed files with 3 additions and 3 deletions

View File

@@ -1,11 +1,11 @@
import { Schema } from "@effect/schema"
export const Email = Schema.pattern(
export const email = Schema.pattern(
/^(?!\.)(?!.*\.\.)([A-Z0-9_+-.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9-]*\.)+[A-Z]{2,}$/i,
{
identifier: "Email",
identifier: "email",
title: "email",
message: () => "Not an email address",
},

View File

@@ -1,6 +1,6 @@
export * from "./Class"
export * from "./DateTime"
export * from "./Email"
export * from "./email"
export * from "./encodedAsPrismaJsonValue"
export * from "./Kind"
export * as MobX from "./MobX"