Skip to content

Commit

Permalink
Fix generate truncate comment (backport prettier#13437) (prettier#13814)
Browse files Browse the repository at this point in the history
Fix generate truncate comment
  • Loading branch information
sosukesuzuki authored and medikoo committed Jan 4, 2024
1 parent 5ab6bff commit 8d03ee0
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 8d03ee0

Please sign in to comment.