Skip to main content

pattern_error

Function pattern_error 

Source
pub fn pattern_error(message: &str) -> String
Expand description

The regex crate’s parse error, reduced to its one-line reason. The full message quotes the pattern back inside a wrapper the user never typed ((?:foo()), with a caret under it, which reads worse than the reason.