diff options
author | Slava Yurin <YurinVV@ya.ru> | 2013-02-15 09:00:46 +0700 |
---|---|---|
committer | Slava Yurin <YurinVV@ya.ru> | 2013-02-18 14:20:27 +0700 |
commit | fb77295a1f2942ee803477ae85ab8306337c42a1 (patch) | |
tree | eb0656acbdfe40f2b010c9424ddb745495e6fb33 /src | |
parent | 78fa8fc3d5215e076284b37394e5ca149e945997 (diff) |
Fix handling of Unicode characters in env vars
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 bb58460..fd93f98 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -195,7 +195,7 @@ expand_env_variable(InStr, VarName, RawVarValue) -> %% Use a regex to match/replace: %% Given variable "FOO": match $FOO\s | $FOOeol | ${FOO} RegEx = io_lib:format("\\\$(~s(\\s|$)|{~s})", [VarName, VarName]), - ReOpts = [global, {return, list}], + ReOpts = [global, {return, list}, unicode], re:replace(InStr, RegEx, [VarValue, "\\2"], ReOpts) end. |