diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-11 10:48:19 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-11 10:48:19 +0700 |
| commit | a868498e7327593b40d1e02fd96531fefd9548d5 (patch) | |
| tree | 1a3c1adabd107bab121c38fc3e99189564577383 /src-migrate/validations | |
| parent | 4d6387f0c85f13cc6c3929432e237f7251e74e87 (diff) | |
<iman> add number telp max to 13
Diffstat (limited to 'src-migrate/validations')
| -rw-r--r-- | src-migrate/validations/auth.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-migrate/validations/auth.ts b/src-migrate/validations/auth.ts index 3abdfb57..8e867ade 100644 --- a/src-migrate/validations/auth.ts +++ b/src-migrate/validations/auth.ts @@ -11,7 +11,7 @@ export const registerSchema = z phone: z .string() .min(1, { message: 'Nomor telepon harus diisi' }) - .refine((val) => /^\d{10,12}$/.test(val), { + .refine((val) => /^\d{9,13}$/.test(val), { message: 'Format nomor telepon tidak valid, contoh: 081234567890', }), type_acc: z.string().optional(), |
