Skip to main content

compile_from_text

Function compile_from_text 

Source
pub fn compile_from_text(text: &str) -> Result<RegexSet, LoadError>
Expand description

Re-exports the forbidden-regex rule compiler’s public surface. Compiles a rule source (autodetected format) into a combined RegexSet.

A projection over compile_rules for callers that only need the engine set (the build-time baseline verifier, the fuzz targets); the runtime loader uses compile_rules so findings can carry rule names.