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