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