Skip to content

Commit

Permalink
fix(scripts): account for prettier placeholder replacement (#5909)
Browse files Browse the repository at this point in the history
Prettier replaces `__SUMMARY__` with `**SUMMARY**`, so just accept either.
  • Loading branch information
addaleax authored Jun 13, 2024
1 parent 9f1b5fd commit f9cf69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-security-test-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const securityTestTag = '@securityTest';
}

process.stdout.write(
template.replace(/__SUMMARY__/, [...comments].join('\n\n'))
template.replace(/__SUMMARY__|\*\*SUMMARY\*\*/, [...comments].join('\n\n'))
);
})().catch((err) => {
queueMicrotask(() => {
Expand Down

0 comments on commit f9cf69c

Please sign in to comment.