Skip to main content

Function: isSafeInput()

isSafeInput(input, config?): boolean
Defined in: validators.ts:504 Boolean shortcut over detectThreatPatterns — discards the findings list when you only need a yes/no decision.

Parameters

input

string String to test.

config?

ThreatDetectionConfig Optional detector toggles.

Returns

boolean true when no detector fires.