浏览代码

Add one more "unicode" option in expand_env_variable—I have a bullet in my prompt that was blowing it up

pull/3/head
Dave Thomas 12 年前
父节点
当前提交
934ec7fdef
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
src/rebar_utils.erl 查看文件

@ -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]),

正在加载...
取消
保存