Skip to content

Commit 805d405

Browse files
committed
Fix {{variable}} replacement
1 parent 17f5c02 commit 805d405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/assistant/configurable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def interpolate_template(template, variables)
9898
when String
9999
# Replace {{ variable }} placeholders with provided variables
100100
template.gsub(/\{\{\s*(\w+)\s*\}\}/) do
101-
key = Regexp.last_match(1)
101+
key = Regexp.last_match(1).to_sym
102102
variables[key] || ""
103103
end
104104
when Array

0 commit comments

Comments
 (0)