From b754bd523a285f7ac1ef6ef7d715edcfa2e1f155 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Fri, 21 Mar 2025 11:47:42 +0800 Subject: [PATCH] Fix: let quot stay. (#6377) ### What problem does this PR solve? #6337 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- agent/component/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/component/template.py b/agent/component/template.py index 4d7db2094..b7838c2cc 100644 --- a/agent/component/template.py +++ b/agent/component/template.py @@ -117,7 +117,7 @@ class Template(ComponentBase): r"\{%s\}" % re.escape(n), v, content ) content = re.sub( - r"(\\\"|\")", "", content + r"(\\\")", "", content ) content = re.sub( r"(#+)", r" \1 ", content