mirror of
https://github.com/sharkdp/fd.git
synced 2026-08-30 17:07:43 +08:00
docs: Update suggested non-regex note on regex failure
This commit is contained in:
+3
-2
@@ -496,8 +496,9 @@ fn build_regex(pattern_regex: String, config: &Config) -> Result<regex::bytes::R
|
||||
.build()
|
||||
.map_err(|e| {
|
||||
anyhow!(
|
||||
"{}\n\nNote: You can use the '--fixed-strings' option to search for a \
|
||||
literal string instead of a regular expression. Alternatively, you can \
|
||||
"{}\n\nNote: You can search for literal substrings with '--fixed-strings' \
|
||||
or literal strings with '--exact' options (instead of a regular expression). \
|
||||
Alternatively, you can \
|
||||
also use the '--glob' option to match on a glob pattern.",
|
||||
e
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user