Permalink
Browse files

Add one more "unicode" option in expand_env_variable—I have a bullet …

…in my prompt that was blowing it up
  • Loading branch information...
1 parent 271299a commit 934ec7fdeff99fe95220f8a187968d0f584585ab @pragdave pragdave committed Jun 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rebar_utils.erl
View
@@ -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]),

0 comments on commit 934ec7f

Please sign in to comment.