mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-18 16:14:16 +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
|
regex_flags = re.DOTALL | re.MULTILINE
|
||||||
|
|
||||||
# escape backslashes in repl
|
|
||||||
repl = repl.replace("\\", "\\\\")
|
|
||||||
|
|
||||||
# create replacement function with validation and backreference handling
|
# create replacement function with validation and backreference handling
|
||||||
repl_fn = self._create_replacement_function(regex, repl, regex_flags=regex_flags)
|
repl_fn = self._create_replacement_function(regex, repl, regex_flags=regex_flags)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user