Skip to content

Commit 3f93b5e

Browse files
committed
Allow replacing with an empty string
1 parent b6ea9d1 commit 3f93b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tools/searchAndReplaceTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function validateParams(
4141
return false
4242
}
4343

44-
if (!replace) {
44+
if (replace === undefined) {
4545
cline.consecutiveMistakeCount++
4646
cline.recordToolError("search_and_replace")
4747
pushToolResult(await cline.sayAndCreateMissingParamError("search_and_replace", "replace"))

0 commit comments

Comments
 (0)