MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / isInvalidUUID

Function isInvalidUUID

packages/server/src/enterprise/utils/validation.util.ts:1–4  ·  view source on GitHub ↗
(id: unknown)

Source from the content-addressed store, hash-verified

1export function isInvalidUUID(id: unknown): boolean {
2 const regexUUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
3 return !id || typeof id !== 'string' || !regexUUID.test(id)
4}
5
6export function isInvalidEmail(email: unknown): boolean {
7 const regexEmail = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/

Callers 5

validateWorkspaceIdMethod · 0.90
validateUserIdMethod · 0.90
validateRoleIdMethod · 0.90
validateLoginMethodIdMethod · 0.90

Calls 1

testMethod · 0.80

Tested by

no test coverage detected