This commit is contained in:
2022-06-08 09:18:47 -05:00
parent 90a3fa9f4b
commit b2392c5784

View File

@@ -55,9 +55,9 @@ function readReadmeFile(readmeFile: string): [string, string] {
if (index === undefined) {
contentPre = content
} else {
content = content.replace(regex, '')
contentPre = content.slice(0, index)
contentPost = content.slice(index)
let content_replace = content.replace(regex, '')
contentPre = content_replace.slice(0, index)
contentPost = content_replace.slice(index)
}
if (!contentPre.endsWith('\n')) {