Dot "." also matches newline by default (closes #111)

This commit is contained in:
J.W 2017-10-14 21:41:38 +08:00 committed by David Peter
parent c38ef0e9b2
commit f2632d5fce
1 changed files with 1 additions and 0 deletions

View File

@ -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()),