Skip to content

Commit cc312ae

Browse files
authored
Fix import updater replacement (#468)
1 parent 89a438a commit cc312ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode-wpilib/src/shared/importupdater.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export async function ImportUpdate(srcDir: string, updateFile: string): Promise<
5050
} else {
5151
let dataOut = dataIn;
5252
for (const replace of updater.replacements) {
53-
dataOut = dataIn.replace(new RegExp(replace.from, updater.flags), replace.to);
53+
dataOut = dataOut.replace(new RegExp(replace.from, updater.flags), replace.to);
5454
}
5555
fs.writeFile(file, dataOut, 'utf8', (err1) => {
5656
if (err1) {

0 commit comments

Comments
 (0)