UUID Match

This commit is contained in:
Moritz Utcke
2025-04-07 18:29:30 -04:00
parent babd929f6a
commit f487b25aa1

View File

@@ -98,7 +98,7 @@ export type OptionalNullable<T> = T extends object ? {
} : T;
export const UUidWithPrefix = z.string().refine((value) => {
const prefixedUUidRegex = /^([A-Z]{2})[0-9A-Z]{6,8}$/i
const prefixedUUidRegex = /^([A-Z]{2})[0-9A-Z]{6,9}$/i
const match = value.match(prefixedUUidRegex)