Skip to content

Commit 5e0b883

Browse files
author
Sosuke Suzuki
authored
Fix generate truncate comment (backport #13437) (#13814)
Fix generate truncate comment
1 parent a980caa commit 5e0b883

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/draft-blog-post.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ rimraf.sync(postGlob);
7272
const introFileData = fs.readFileSync(introFile, "utf8").trim();
7373

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

7777
fs.writeFileSync(
7878
postFile,

0 commit comments

Comments
 (0)