From f2632d5fce910849ab60ecd0e47730274d40fda4 Mon Sep 17 00:00:00 2001 From: "J.W" Date: Sat, 14 Oct 2017 21:41:38 +0800 Subject: [PATCH] Dot "." also matches newline by default (closes #111) --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 2e8b283..3d1435c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -135,6 +135,7 @@ fn main() { match RegexBuilder::new(pattern) .case_insensitive(!config.case_sensitive) + .dot_matches_new_line(true) .build() { Ok(re) => walk::scan(root_dir, Arc::new(re), base, Arc::new(config)), Err(err) => error(err.description()),