diff options
-rw-r--r-- | src/rebar_utils.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index a32adfd..ce84a57 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -196,7 +196,7 @@ expand_env_variable(InStr, VarName, RawVarValue) -> %% Given variable "FOO": match $FOO\s | $FOOeol | ${FOO} RegEx = io_lib:format("\\\$(~s(\\s|$)|{~s})", [VarName, VarName]), ReOpts = [global, {return, list}], - re:replace(InStr, RegEx, VarValue ++ "\\2", ReOpts) + re:replace(InStr, RegEx, [VarValue, "\\2"], ReOpts) end. |