From 934ec7fdeff99fe95220f8a187968d0f584585ab Mon Sep 17 00:00:00 2001 From: Dave Thomas Date: Fri, 21 Jun 2013 23:40:32 -0500 Subject: =?UTF-8?q?Add=20one=20more=20"unicode"=20option=20in=20expand=5Fe?= =?UTF-8?q?nv=5Fvariable=E2=80=94I=20have=20a=20bullet=20in=20my=20prompt?= =?UTF-8?q?=20that=20was=20blowing=20it=20up?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rebar_utils.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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]), -- cgit v1.1