mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 02:24:09 -07:00
Fix dollar sign replacement bug in file editing (#7703)
This commit is contained in:
@@ -509,7 +509,8 @@ export class Task {
|
||||
if (oldString === '' && !isNewFile) {
|
||||
return currentContent;
|
||||
}
|
||||
return currentContent.replaceAll(oldString, newString);
|
||||
// Use split/join to ensure replacement
|
||||
return currentContent.split(oldString).join(newString);
|
||||
}
|
||||
|
||||
async scheduleToolCalls(
|
||||
|
||||
Reference in New Issue
Block a user