From 8949e5552807e0812b5b53427ff78a813cacd0f9 Mon Sep 17 00:00:00 2001 From: glazk0 <43091603+glazk0@users.noreply.github.com> Date: Tue, 17 Sep 2024 09:09:35 +0200 Subject: [PATCH] fix(auth): adapt regex --- src/lib/validations/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/validations/auth.ts b/src/lib/validations/auth.ts index 7471639..62cb11d 100644 --- a/src/lib/validations/auth.ts +++ b/src/lib/validations/auth.ts @@ -1,6 +1,6 @@ import { z } from 'zod'; -const CODE_REGEX = /^[0-9a-f]{4}-[0-5][0-9a-f]{3}$/; +const CODE_REGEX = /^[0-9a-f]{4}-[0-9a-f]{4}$/; export const loginSchema = z.object({ pseudo: z.string()