Skip to content

ContentPreprocessor

Defined in: core/src/detection-engine/preprocessor.ts:52

new ContentPreprocessor(maxContentLength?, preserveAttackPatterns?): ContentPreprocessor

Defined in: core/src/detection-engine/preprocessor.ts:56

number = 10000

boolean = true

ContentPreprocessor

decodeCommonEncodings(content): string

Defined in: core/src/detection-engine/preprocessor.ts:77

string

string


extractAttackRegions(content): [number, number][]

Defined in: core/src/detection-engine/preprocessor.ts:126

string

[number, number][]


normalizeUnicode(content): string

Defined in: core/src/detection-engine/preprocessor.ts:61

string

string


preprocess(content): Promise<string>

Defined in: core/src/detection-engine/preprocessor.ts:205

string

Promise<string>


preprocessBatch(contents): Promise<string[]>

Defined in: core/src/detection-engine/preprocessor.ts:217

string[]

Promise<string[]>


removeExcessiveWhitespace(content): string

Defined in: core/src/detection-engine/preprocessor.ts:73

string

string


removeNullBytes(content): string

Defined in: core/src/detection-engine/preprocessor.ts:69

string

string


truncateSafely(content): string

Defined in: core/src/detection-engine/preprocessor.ts:162

string

string