Expand description
Dual regex engine abstraction for safe and fast pattern matching.
The regex safety audit (git_safety_guard-99e.11) found:
- ~85% of pack patterns can use the linear-time
regexcrate - ~15% require lookahead/lookbehind (needs
fancy_regex)
This module provides:
CompiledRegex: Eagerly compiled abstraction that auto-selects engineLazyCompiledRegex: Lazily compiled regex usingCompiledRegex(for pack patterns)
The lazy variant avoids regex compilation during pack registry initialization, improving startup latency for the common allow-path case.
Structs§
- Lazy
Compiled Regex - A lazily-compiled regex pattern using
CompiledRegex.
Enums§
- Compiled
Regex - A compiled regex that auto-selects between linear-time and backtracking engines.
Functions§
- needs_
backtracking_ engine - Check if a pattern requires the backtracking engine.