This commit is contained in:
2022-06-08 09:20:30 -05:00
parent b2392c5784
commit 9bc0579b3b

View File

@@ -44,7 +44,9 @@ function getReadmeFileName(): string | null {
}
function readReadmeFile(readmeFile: string): [string, string] {
let content = readFileSync(readmeFile).toString()
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