mirror of
https://github.com/correl/rebar.git
synced 2024-11-27 11:09:55 +00:00
Add one more "unicode" option in expand_env_variable—I have a bullet in my prompt that was blowing it up
This commit is contained in:
parent
271299a4e9
commit
934ec7fdef
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ expand_env_variable(InStr, VarName, RawVarValue) ->
|
||||||
%% No variables to expand
|
%% No variables to expand
|
||||||
InStr;
|
InStr;
|
||||||
_ ->
|
_ ->
|
||||||
VarValue = re:replace(RawVarValue, "\\\\", "\\\\\\\\", [global]),
|
VarValue = re:replace(RawVarValue, "\\\\", "\\\\\\\\", [global, unicode]),
|
||||||
%% Use a regex to match/replace:
|
%% Use a regex to match/replace:
|
||||||
%% Given variable "FOO": match $FOO\s | $FOOeol | ${FOO}
|
%% Given variable "FOO": match $FOO\s | $FOOeol | ${FOO}
|
||||||
RegEx = io_lib:format("\\\$(~s(\\s|$)|{~s})", [VarName, VarName]),
|
RegEx = io_lib:format("\\\$(~s(\\s|$)|{~s})", [VarName, VarName]),
|
||||||
|
|
Loading…
Reference in a new issue