summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2013-03-04 06:49:32 -0800
committerDave Smith <dizzyd@dizzyd.com>2013-03-04 06:49:32 -0800
commita9cb38e6d13546775b0c726a3d6a16a82ecf807b (patch)
treef5170b886d4091fe663ef71b535763170a4f665a
parentc77f8e13cafc5913b417c9c3845abfe49f87655d (diff)
parentfb77295a1f2942ee803477ae85ab8306337c42a1 (diff)
Merge pull request #68 from nevar/fix_unicode_promt
Fix unicode
-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 bb58460..fd93f98 100644
--- a/src/rebar_utils.erl
+++ b/src/rebar_utils.erl
@@ -195,7 +195,7 @@ expand_env_variable(InStr, VarName, RawVarValue) ->
%% Use a regex to match/replace:
%% Given variable "FOO": match $FOO\s | $FOOeol | ${FOO}
RegEx = io_lib:format("\\\$(~s(\\s|$)|{~s})", [VarName, VarName]),
- ReOpts = [global, {return, list}],
+ ReOpts = [global, {return, list}, unicode],
re:replace(InStr, RegEx, [VarValue, "\\2"], ReOpts)
end.