mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Tweak regex to properly match extension and not just .erl anywhere in filename
This commit is contained in:
parent
fa2a58261a
commit
42647f4c22
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ clean(_Config, _AppFile) ->
|
|||
|
||||
doterl_compile(Config, Outdir) ->
|
||||
FirstErls = rebar_config:get_list(Config, erl_first_files, []),
|
||||
RestErls = [Source || Source <- rebar_utils:find_files("src", ".*.erl"),
|
||||
RestErls = [Source || Source <- rebar_utils:find_files("src", ".*\\.erl\$"),
|
||||
lists:member(Source, FirstErls) == false],
|
||||
rebar_base_compiler:run(Config, FirstErls, RestErls,
|
||||
fun(S, C) -> internal_erl_compile(S, C, Outdir) end).
|
||||
|
|
Loading…
Reference in a new issue