Permalink
Browse files

Merge pull request #68 from nevar/fix_unicode_promt

Fix unicode
  • Loading branch information...
2 parents c77f8e1 + fb77295 commit a9cb38e6d13546775b0c726a3d6a16a82ecf807b @dizzyd dizzyd committed Mar 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rebar_utils.erl
View
@@ -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.

0 comments on commit a9cb38e

Please sign in to comment.