Skip to content

Commit 8b18473

Browse files
committed
add tab example to str replace
1 parent 4f3d79f commit 8b18473

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/src/tools/definitions/tool/str-replace.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ ${getToolCallString(toolName, {
2020
path: 'path/to/file',
2121
replacements: [
2222
{ old: 'This is the old string', new: 'This is the new string' },
23-
{ old: 'line to delete\n', new: '' },
23+
{
24+
old: '\n\t\t// @codebuff delete this log line please\n\t\tconsole.log("Hello, world!");\n',
25+
new: '\n',
26+
},
2427
],
2528
})}
2629
`.trim(),

0 commit comments

Comments
 (0)