Skip to main content

Function: assertValidSiteIdentifier()

function assertValidSiteIdentifier(identifier: string, context: string): void;

Defined in: shared/validation/identifierValidation.ts:53

Throws if the supplied site identifier is empty/whitespace, too long, or contains ASCII control characters.

Parametersโ€‹

identifierโ€‹

string

Site identifier candidate.

contextโ€‹

string

Human-readable context included in thrown errors.

Returnsโ€‹

void