UUID Match
This commit is contained in:
@@ -98,7 +98,7 @@ export type OptionalNullable<T> = T extends object ? {
|
|||||||
} : T;
|
} : T;
|
||||||
|
|
||||||
export const UUidWithPrefix = z.string().refine((value) => {
|
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)
|
const match = value.match(prefixedUUidRegex)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user