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

Function isInvalidName

packages/server/src/enterprise/utils/validation.util.ts:11–13  ·  view source on GitHub ↗
(name: unknown)

Source from the content-addressed store, hash-verified

9}
10
11export function isInvalidName(name: unknown): boolean {
12 return !name || typeof name !== 'string' || name.length > 100
13}
14
15export function isInvalidDateTime(dateTime: unknown): boolean {
16 const regexDateTime = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})?$/

Callers 5

validateWorkspaceNameMethod · 0.90
validateUserNameMethod · 0.90
validateRoleNameMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected