Skip to content

Commit

Permalink
fix: replace posts to multi-platform-posts
Browse files Browse the repository at this point in the history
  • Loading branch information
baozouai committed May 13, 2023
1 parent f0f3988 commit 19361ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -43,7 +43,7 @@ async function main(): Promise<void> {

const README_PATH = './README.md'
const res = fs.readFileSync(README_PATH, 'utf-8')
.replace(/(?<=<!-- posts start -->)[.\s\S]*?(?=<!-- posts end -->)/, `\n<ul>${appendHtml}\n</ul>\n`)
.replace(/(?<=<!-- multi-platform-posts start -->)[.\s\S]*?(?=<!-- multi-platform-posts end -->)/, `\n<ul>${appendHtml}\n</ul>\n`)

core.info('4. 修改 README ...')
fs.writeFileSync(README_PATH, res)
Expand Down

0 comments on commit 19361ac

Please sign in to comment.