Skip to content

Commit 468c807

Browse files
committed
docs: Update suggested non-regex note on regex failure
1 parent 8f5a167 commit 468c807

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,9 @@ fn build_regex(pattern_regex: String, config: &Config) -> Result<regex::bytes::R
496496
.build()
497497
.map_err(|e| {
498498
anyhow!(
499-
"{}\n\nNote: You can use the '--fixed-strings' option to search for a \
500-
literal string instead of a regular expression. Alternatively, you can \
499+
"{}\n\nNote: You can search for literal substrings with '--fixed-strings' \
500+
or literal strings with '--exact' options (instead of a regular expression). \
501+
Alternatively, you can \
501502
also use the '--glob' option to match on a glob pattern.",
502503
e
503504
)

0 commit comments

Comments
 (0)