mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Use safer delimiter for interpolation
This commit is contained in:
parent
e887ab532d
commit
f706c0bfb2
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ module Hamlit
|
|||
# We should handle interpolation here to escape only interpolated values.
|
||||
def compile_interpolated_plain(node)
|
||||
unless Ripper.respond_to?(:lex) # No Ripper.lex in truffleruby
|
||||
return [:multi, [:escape, node.value[:escape_interpolation], [:dynamic, "%Q[#{node.value[:value]}]"]], [:newline]]
|
||||
return [:multi, [:escape, node.value[:escape_interpolation], [:dynamic, "%Q\0#{node.value[:value]}\0"]], [:newline]]
|
||||
end
|
||||
|
||||
temple = [:multi]
|
||||
|
|
Loading…
Reference in a new issue