Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan Erdos committed Oct 24, 2024
1 parent 1c715a1 commit 667ac58
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/code/src/@/workers/chat-utils.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,13 @@ ${this.mod.lastCode}
0,
replaceIndex + REPLACE.length,
);
const result = up(trimmedInstructions, code);
return {
result: up(trimmedInstructions, code),
result,
len: trimmedInstructions.length,
error: "",
error: result === code
? `couldn't apply the search/replace blocks :( \n ${trimmedInstructions}`
: "",
};
}

Expand Down

0 comments on commit 667ac58

Please sign in to comment.