:)
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user