Skip to main content

invalid_regex_value

Function invalid_regex_value 

Source
pub fn invalid_regex_value(pattern: &str, err: Error, span: Span) -> ShellError
Expand description

Map a fancy-regex compile failure to ShellError::InvalidValue.

Shared by EngineState::compile_regex and call sites that compile with options that bypass the LRU cache (for example a custom backtrack limit).