Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
934ec7fdef
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
src/rebar_utils.erl Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet