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

View File

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