From fd3596e4ab1c2d8355fbabb1107d68d6783c7cfd Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Sat, 12 Aug 2023 23:43:40 -0400 Subject: [PATCH] fix(striker-ui): reduce restrictions on valid UUIDv4 --- striker-ui/lib/consts/REG_EXP_PATTERNS.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui/lib/consts/REG_EXP_PATTERNS.ts b/striker-ui/lib/consts/REG_EXP_PATTERNS.ts index 93e18fd7..e9062bfd 100644 --- a/striker-ui/lib/consts/REG_EXP_PATTERNS.ts +++ b/striker-ui/lib/consts/REG_EXP_PATTERNS.ts @@ -17,6 +17,6 @@ export const REP_IPV4_CSV = new RegExp(`^(?:${ipv4}\\s*,\\s*)*${ipv4}$`); export const REP_PEACEFUL_STRING = /^[^'"/\\><}{]*$/; export const REP_UUID = new RegExp( - `^${hex}{8}-${hex}{4}-[1-5]${hex}{3}-[89ab]${hex}{3}-${hex}{12}$`, + `^${hex}{8}-(?:${hex}{4}-){3}${hex}{12}$`, 'i', );