This commit is contained in:
2022-06-08 09:38:54 -05:00
parent 5267391689
commit e15b0bf785
3 changed files with 4 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ function updateReadmeFile(fileList) {
${installLinks}
<!-- END INSTALL LINKS -->
`;
console.log(installLinksAll);
let content = [readmeStart, installLinksAll, readmeEnd].join('\n');
(0, fs_1.writeFileSync)(readmeFile, content);
}
@@ -36,7 +37,6 @@ function getReadmeFileName() {
}
function readReadmeFile(readmeFile) {
const content = (0, fs_1.readFileSync)(readmeFile).toString();
console.log(JSON.stringify(content));
const regex = /\n{0,1}<!-- START INSTALL LINKS -->(?:.|\n)*?<!-- END INSTALL LINKS -->\n{0,1}/;
const index = regex.exec(content)?.index;
let contentPre = '', contentPost = '';