From 9805d4720ec92495ae5f0bb4348e6ef580e5b5bb Mon Sep 17 00:00:00 2001 From: ae Date: Thu, 17 Apr 2025 19:06:29 +0300 Subject: [PATCH] fix: regex constructor --- web/src/lib/const.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/lib/const.ts b/web/src/lib/const.ts index 44d568b..b1113b6 100644 --- a/web/src/lib/const.ts +++ b/web/src/lib/const.ts @@ -14,7 +14,8 @@ export const MIN_PASSWORD_ENTROPY = 60.0 export const TITLE_MAX_LENGTH = 150 export const UUID_REGEX = new RegExp( - "/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i" + "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$", + "i" ) // Underestimation compared to the backend to prevent mismatches when registering