From 1142cf0cb7b1c22513e640826f0f4df9cad56391 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Wed, 7 Sep 2022 18:11:10 +0900 Subject: [PATCH] Fix generate truncate comment (#13437) Fix condition --- scripts/draft-blog-post.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/draft-blog-post.mjs b/scripts/draft-blog-post.mjs index 91bdb26a3c5c..1b3d1bdf4e81 100644 --- a/scripts/draft-blog-post.mjs +++ b/scripts/draft-blog-post.mjs @@ -72,7 +72,7 @@ rimraf.sync(postGlob); const introFileData = fs.readFileSync(introFile, "utf8").trim(); const TRUNCATE_COMMENT = ""; -const shouldPrintTruncate = introFileData.includes(TRUNCATE_COMMENT); +const shouldPrintTruncate = !introFileData.includes(TRUNCATE_COMMENT); fs.writeFileSync( postFile,