Skip to main content

Function: validateSafeName()

validateSafeName(input): boolean
Defined in: validators.ts:600 Refinement for human name fields. More permissive than validateSafeText — allows international letters, combining marks, hyphens, apostrophes, and spaces — but still rejects HTML/SQL/NoSQL injection patterns and homoglyph forgeries. Suitable for first/last/full-name inputs in registration forms.

Parameters

input

string

Returns

boolean true when the name passes both the threat detectors and the name-shape regex.