Skip to main content

Module sanitize

Module sanitize 

Source
Expand description

Privacy scrubber for raw MTGA log text.

Strips sensitive data (auth tokens, bearer tokens, OS-specific user paths, session identifiers, display names, and hardware fingerprint lines) from unstructured Player.log text. This is a best-effort filter; novel token formats may slip through.

Regex patterns are compiled once via std::sync::LazyLock and reused across all calls.

Functions§

scrub_raw_log
Redact PII and credentials from raw MTGA Player.log text.