changed regex
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user