diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_utils.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 5763718..bcb4777 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -739,6 +739,8 @@ set_httpc_options(Scheme, Proxy) -> httpc:set_options([{Scheme, {{Host, Port}, []}}], rebar). %% escape\ as\ a\ shell\? +escape_chars(Str) when is_atom(Str) -> + escape_chars(atom_to_list(Str)); escape_chars(Str) -> re:replace(Str, "([ ()?`!$])", "\\\\&", [global, {return, list}]). |