mcpwn API
    Preparing search index...

    Function loadRedactPatterns

    • Load extra patterns from a file (--redact-file). One pattern per line: label=regex → named regex → label defaults to "custom" Blank lines and # comments are ignored. Invalid regexes are skipped (with no crash). Built-in patterns are NOT included — combine with builtinRedactPatterns at the call site if both are wanted.

      Parameters

      • file: string

      Returns RedactPattern[]