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

@@ -21,6 +21,8 @@ ${installLinks}
<!-- END INSTALL LINKS -->
`
console.log(installLinksAll)
let content = [readmeStart, installLinksAll, readmeEnd].join('\n')
writeFileSync(readmeFile, content)
}
@@ -46,7 +48,6 @@ function getReadmeFileName(): string | null {
function readReadmeFile(readmeFile: string): [string, string] {
const content = 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