Skip to content

Commit

Permalink
Fix generate truncate comment (#13437)
Browse files Browse the repository at this point in the history
Fix condition
  • Loading branch information
sosukesuzuki committed Sep 7, 2022
1 parent 5766433 commit 1142cf0
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 1142cf0

Please sign in to comment.