mirror of
https://github.com/correl/rebar.git
synced 2024-11-14 19:19:30 +00:00
Local corrections on string processing:
* Corrected regexp: `[x|y]` -> `[xy]`. * Used an re:replace/4 option instead of multiple IOlist functions.
This commit is contained in:
parent
908028858f
commit
e3d2142df5
1 changed files with 1 additions and 2 deletions
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue