瀏覽代碼

Merge pull request #68 from nevar/fix_unicode_promt

Fix unicode
pull/3/head
Dave Smith 12 年之前
父節點
當前提交
a9cb38e6d1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
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.

Loading…
取消
儲存