Function rg::args::suggest_pcre2

source ·
fn suggest_pcre2(msg: &str) -> Option<String>
Expand description

Inspect an error resulting from building a Rust regex matcher, and if it’s believed to correspond to a syntax error that PCRE2 could handle, then add a message to suggest the use of -P/–pcre2.