magiclogger - v0.1.0
    Preparing search index...

    Interface RedactionPattern

    Pattern definition for sensitive data detection.

    interface RedactionPattern {
        confidence?: number;
        contextKeywords?: string[];
        name: string;
        pattern: RegExp;
        preserveFormat?: boolean;
        replacement: string | ((match: string) => string);
        strategy?: RedactionStrategy;
    }
    Index

    Properties

    confidence?: number

    Confidence threshold (0-1) for fuzzy matching.

    contextKeywords?: string[]

    Context keywords that increase detection confidence.

    name: string

    Pattern name for identification.

    pattern: RegExp

    Regular expression for detection.

    preserveFormat?: boolean

    Whether to preserve format (e.g., keep last 4 digits of credit card).

    replacement: string | ((match: string) => string)

    Replacement string or function.

    Redaction strategy.

    'mask'