Skip to content

Commit

Permalink
chore(generator): Escape accidental string interpolation syntax in de…
Browse files Browse the repository at this point in the history
…scription strings (googleapis#11661)
  • Loading branch information
dazuma authored Jul 25, 2024
1 parent 3f3317f commit d100638
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/google_apis/generator/elixir_generator/renderer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ defmodule GoogleApis.Generator.ElixirGenerator.Renderer do
str
|> String.replace("\"\"\"", "\\\"\\\"\\\"")
|> String.replace("\\", "\\\\")
|> String.replace("\#{", "\\\#{")
|> String.replace(~r{(\n+)([^\n])}, "\\1#{prefix}\\2")
end

Expand Down

0 comments on commit d100638

Please sign in to comment.