mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 02:14:49 +00:00
Merge branch 'main' into test-replace-literal
This commit is contained in:
commit
984e43d03e
1 file changed
-3
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user