:|
This commit is contained in:
@@ -61,19 +61,8 @@ function readReadmeFile(readmeFile: string): [string, string] {
|
||||
contentPost = content_replace.slice(index)
|
||||
}
|
||||
|
||||
if (!contentPre.endsWith('\n')) {
|
||||
contentPre += '\n'
|
||||
}
|
||||
if (!contentPre.endsWith('\n\n')) {
|
||||
contentPre += '\n'
|
||||
}
|
||||
|
||||
if (!contentPost.startsWith('\n')) {
|
||||
contentPost += '\n'
|
||||
}
|
||||
if (!contentPost.startsWith('\n\n')) {
|
||||
contentPre += '\n'
|
||||
}
|
||||
contentPre = contentPre.trimEnd() + '\n\n'
|
||||
contentPost = '\n\n' + contentPost.trimStart()
|
||||
|
||||
console.log(
|
||||
JSON.stringify(index),
|
||||
|
||||
Reference in New Issue
Block a user