mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-01 03:51:01 +01:00
Dot "." also matches newline by default (closes #111)
This commit is contained in:
parent
c38ef0e9b2
commit
f2632d5fce
@ -135,6 +135,7 @@ fn main() {
|
|||||||
|
|
||||||
match RegexBuilder::new(pattern)
|
match RegexBuilder::new(pattern)
|
||||||
.case_insensitive(!config.case_sensitive)
|
.case_insensitive(!config.case_sensitive)
|
||||||
|
.dot_matches_new_line(true)
|
||||||
.build() {
|
.build() {
|
||||||
Ok(re) => walk::scan(root_dir, Arc::new(re), base, Arc::new(config)),
|
Ok(re) => walk::scan(root_dir, Arc::new(re), base, Arc::new(config)),
|
||||||
Err(err) => error(err.description()),
|
Err(err) => error(err.description()),
|
||||||
|
Loading…
Reference in New Issue
Block a user