Skip to main content

Module patterns

Module patterns 

Source
Expand description

Re-export of injection-detection patterns from zeph-common for backwards compatibility.

The canonical definitions have moved to zeph_common::patterns. Callers that already import from zeph_tools::patterns continue to work without changes.

Constants§

RAW_INJECTION_PATTERNS
Raw (name, regex pattern) pairs for prompt-injection detection.
RAW_RESPONSE_PATTERNS
Patterns for scanning LLM output (response verification layer).

Functions§

strip_format_chars
Strip Unicode format (Cf) characters and ASCII control characters (except tab/newline) from text before injection pattern matching.