fix: regex constructor
This commit is contained in:
parent
14a87a2578
commit
9805d4720e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user