Skip to content

Commit

Permalink
Update lib/fluent/config/literal_parser.rb
Browse files Browse the repository at this point in the history
matching `#{`

Co-authored-by: Takuro Ashie <[email protected]>
  • Loading branch information
Athishpranav2003 and ashie authored Aug 13, 2024
1 parent af2b11d commit be5708b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/config/literal_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def scan_json(is_array)
buffer << line_buffer + "\n"
line_buffer = ""
else
if @ss.exist?(/\{[^}]+\}/)
if @ss.exist?(/^\{[^}]+\}/)
# if it's interpolated string
skip(/\{/)
line_buffer << eval_embedded_code(scan_embedded_code)
Expand Down

0 comments on commit be5708b

Please sign in to comment.