mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Escape backslashes prior to escaping the quotes
This commit is contained in:
parent
07b20d16f8
commit
f3039c7a87
1 changed files with 3 additions and 2 deletions
|
@ -306,5 +306,6 @@ execute_overlay([Other | _Rest], _Vars, _BaseDir, _TargetDir) ->
|
||||||
%%
|
%%
|
||||||
render(Bin, Context) ->
|
render(Bin, Context) ->
|
||||||
%% Be sure to escape any double-quotes before rendering...
|
%% Be sure to escape any double-quotes before rendering...
|
||||||
Str = re:replace(Bin, "\"", "\\\\\"", [global, {return,list}]),
|
Str0 = re:replace(Bin, "\\\\", "\\\\\\", [global, {return, list}]),
|
||||||
mustache:render(Str, Context).
|
Str1 = re:replace(Str0, "\"", "\\\\\"", [global, {return,list}]),
|
||||||
|
mustache:render(Str1, Context).
|
||||||
|
|
Loading…
Reference in a new issue