fix: regex constructor

This commit is contained in:
ae 2025-04-17 19:06:29 +03:00
parent 14a87a2578
commit 9805d4720e
Signed by: ae
GPG Key ID: 995EFD5C1B532B3E

View File

@ -14,7 +14,8 @@ export const MIN_PASSWORD_ENTROPY = 60.0
export const TITLE_MAX_LENGTH = 150 export const TITLE_MAX_LENGTH = 150
export const UUID_REGEX = new RegExp( 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 // Underestimation compared to the backend to prevent mismatches when registering