0.1.15 #16

Merged
Thilawyn merged 12 commits from next into master 2024-09-04 00:33:45 +02:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit e5d777dfe6 - Show all commits

12
src/Schema/Email.ts Normal file
View File

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

View File

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