Skip to content

Commit

Permalink
Fix generate truncate comment (backport #13437) (#13814)
Browse files Browse the repository at this point in the history
Fix generate truncate comment
  • Loading branch information
sosukesuzuki committed Nov 6, 2022
1 parent a980caa commit 5e0b883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/draft-blog-post.mjs
Expand Up @@ -72,7 +72,7 @@ rimraf.sync(postGlob);
const introFileData = fs.readFileSync(introFile, "utf8").trim();

const TRUNCATE_COMMENT = "<!--truncate-->";
const shouldPrintTruncate = introFileData.includes(TRUNCATE_COMMENT);
const shouldPrintTruncate = !introFileData.includes(TRUNCATE_COMMENT);

fs.writeFileSync(
postFile,
Expand Down

0 comments on commit 5e0b883

Please sign in to comment.