String.replace will substitute special patterns (#167239) (#167250)

pull/167258/head
Benjamin Pasero 2022-11-25 15:03:49 +01:00 committed by GitHub
parent 3a52e79cea
commit aa961ec5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ const createVSCodeWebProductConfigurationPatcher = (product) => {
commit,
date: buildDate
});
return content.replace('/*BUILD->INSERT_PRODUCT_CONFIGURATION*/', productConfiguration.substr(1, productConfiguration.length - 2) /* without { and }*/);
return content.replace('/*BUILD->INSERT_PRODUCT_CONFIGURATION*/', () => productConfiguration.substr(1, productConfiguration.length - 2) /* without { and }*/);
}
return content;