diff options
author | Pierre Fenoll <pierrefenoll@gmail.com> | 2013-11-22 15:23:54 +0000 |
---|---|---|
committer | Pierre Fenoll <pierrefenoll@gmail.com> | 2014-06-13 02:22:26 +0200 |
commit | e3d2142df51f50cc79797d3950f75e7d77a37a82 (patch) | |
tree | 6f33171f237b6f6fa74ec4dd8cf97316f1c0ff6d | |
parent | 908028858fc4376c02951dd1e524008d24c453f1 (diff) |
Local corrections on string processing:
* Corrected regexp: `[x|y]` -> `[xy]`.
* Used an re:replace/4 option instead of multiple IOlist functions.
-rw-r--r-- | src/rebar_erlc_compiler.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index 5f541d9..1de9cb2 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -119,8 +119,7 @@ clean(Config, _AppFile) -> YrlFiles = rebar_utils:find_files("src", "^.*\\.[x|y]rl\$"), rebar_file_utils:delete_each( - [ binary_to_list(iolist_to_binary(re:replace(F, "\\.[x|y]rl$", ".erl"))) - || F <- YrlFiles ]), + [re:replace(F, "\\.[xy]rl$", ".erl", [{return,list}]) || F <- YrlFiles]), %% Delete the build graph, if any rebar_file_utils:rm_rf(erlcinfo_file(Config)), |