Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 934ec7fdeff99fe95220f8a187968d0f584585ab 1 parent 271299a
@pragdave pragdave authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/rebar_utils.erl
View
2  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]),
Please sign in to comment.
Something went wrong with that request. Please try again.