Merge branch 'main' into test-replace-literal

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2025-12-16 21:28:43 +01:00
commit 984e43d03e
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)