changed regex

This commit is contained in:
2022-06-08 09:52:05 -05:00
parent 2490236af3
commit 95ec0c42f6
3 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ function getReadmeFileName() {
}
function readReadmeFile(readmeFile) {
const content = (0, fs_1.readFileSync)(readmeFile).toString();
const regex = /\n{0,1}<!-- START INSTALL LINKS -->(?:.|\n)*?<!-- END INSTALL LINKS -->\n{0,1}/;
const regex = /<!-- START INSTALL LINKS -->(?:.|\n)*?<!-- END INSTALL LINKS -->/;
const index = regex.exec(content)?.index;
let contentPre = '', contentPost = '';
if (index === undefined) {