summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Thomas <dave@pragprog.com>2013-06-21 23:40:32 -0500
committerDave Thomas <dave@pragprog.com>2013-06-21 23:40:32 -0500
commit934ec7fdeff99fe95220f8a187968d0f584585ab (patch)
tree3dd033fb4a2df81209761ec3d8fdf40d00381972
parent271299a4e9f6ac96a4b539c1e7df6fec4b6690f6 (diff)
Add one more "unicode" option in expand_env_variable—I have a bullet in my prompt that was blowing it up
-rw-r--r--src/rebar_utils.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
index fd93f98..9c7c064 100644
--- a/src/rebar_utils.erl
+++ b/src/rebar_utils.erl
@@ -191,7 +191,7 @@ expand_env_variable(InStr, VarName, RawVarValue) ->
%% No variables to expand
InStr;
_ ->
- VarValue = re:replace(RawVarValue, "\\\\", "\\\\\\\\", [global]),
+ VarValue = re:replace(RawVarValue, "\\\\", "\\\\\\\\", [global, unicode]),
%% Use a regex to match/replace:
%% Given variable "FOO": match $FOO\s | $FOOeol | ${FOO}
RegEx = io_lib:format("\\\$(~s(\\s|$)|{~s})", [VarName, VarName]),