Skip to content
Myr

Fixes: #234

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Giving suggestion to use `--fixed-strings` in case user passes invalid metacharacters as a regex.

authored by Pramod Bisht · committed by David Peter · parent ad8256c · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:src/main.rs+7 added-1 removed
180 unmodified lines
181 .dot_matches_new_line(true)182 .build()183 {184 Ok(re) => walk::scan(&dir_vec, Arc::new(re), Arc::new(config)),185 Err(err) => error(err.description()),185 Err(err) => error(186 format!(187 "{}\nHint: You can use the '--fixed-strings' option to search for a \188 literal string instead of a regular expression",189 err.description()190 ).as_str(),191 ),192 }193}