From 74d290b9c2be6352813c71ad6036a24ddacfae79 Mon Sep 17 00:00:00 2001 From: Roberto Aloi Date: Tue, 6 Dec 2016 11:31:28 +0100 Subject: Restrict regexp to match on files starting with '._' --- src/rebar_base_compiler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rebar_base_compiler.erl') diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index 5d54057..bfd79a5 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -54,7 +54,7 @@ run(Config, FirstFiles, SourceDir, SourceExt, TargetDir, TargetExt, run(Config, FirstFiles, SourceDir, SourceExt, TargetDir, TargetExt, Compile3Fn, Opts) -> %% Convert simple extension to proper regex - SourceExtRe = "^[^._].*\\" ++ SourceExt ++ [$$], + SourceExtRe = "^(?!._).*\\" ++ SourceExt ++ [$$], Recursive = proplists:get_value(recursive, Opts, true), %% Find all possible source files -- cgit v1.1