From be5708b60f23930c57be521b70311412dffbaa6f Mon Sep 17 00:00:00 2001 From: Athish Pranav D <105591739+Athishpranav2003@users.noreply.github.com> Date: Tue, 13 Aug 2024 11:45:01 +0530 Subject: [PATCH] Update lib/fluent/config/literal_parser.rb matching `#{` Co-authored-by: Takuro Ashie --- lib/fluent/config/literal_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fluent/config/literal_parser.rb b/lib/fluent/config/literal_parser.rb index 9337f175f5..d165c728ff 100644 --- a/lib/fluent/config/literal_parser.rb +++ b/lib/fluent/config/literal_parser.rb @@ -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)