Fix: With changes from #846, backslashes in repl must no longer be escaped

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2025-12-16 20:35:07 +01:00
1 parent e3ad6ff683
commit 08d791e637
1 file changed
-3
-3
View File
@@ -268,9 +268,6 @@ class ReplaceContentTool(Tool, ToolMarkerCanEdit):
regex_flags = re.DOTALL | re.MULTILINE
# escape backslashes in repl
repl = repl.replace("\\", "\\\\")
# create replacement function with validation and backreference handling
repl_fn = self._create_replacement_function(regex, repl, regex_flags=regex_flags)