fix(filesystem): preserve literal dollar replacements (#4225)
Co-authored-by: Ola Hungerford <olahungerford@gmail.com>
This commit is contained in:
parent
ce3b44e21b
commit
00ce9cf134
1 changed files with 17 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ export async function applyFileEdits(
|
|||
|
||||
// If exact match exists, use it
|
||||
if (modifiedContent.includes(normalizedOld)) {
|
||||
modifiedContent = modifiedContent.replace(normalizedOld, normalizedNew);
|
||||
modifiedContent = modifiedContent.replace(normalizedOld, () => normalizedNew);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue