diff options
author | Dave Thomas <dave@pragprog.com> | 2013-06-21 23:40:32 -0500 |
---|---|---|
committer | Dave Thomas <dave@pragprog.com> | 2013-06-21 23:40:32 -0500 |
commit | 934ec7fdeff99fe95220f8a187968d0f584585ab (patch) | |
tree | 3dd033fb4a2df81209761ec3d8fdf40d00381972 /src | |
parent | 271299a4e9f6ac96a4b539c1e7df6fec4b6690f6 (diff) |
Add one more "unicode" option in expand_env_variable—I have a bullet in my prompt that was blowing it up
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_utils.erl | 2 |
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]), |