Skip to content
Snippets Groups Projects
Commit 80e3e6ac authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: ensure newline before </details> when truncating

parent df987f5b
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,9 @@ exports[`platform/utils/pr-body .smartTruncate truncates to 1000 1`] = `
##### Features
- **docker:** AWS ECR authentication support ([#&#8203;4497](https:</details>
- **docker:** AWS ECR authentication support ([#&#8203;4497](https://
</details>
---
......
......@@ -6,7 +6,7 @@ export function smartTruncate(input: string, len: number): string {
}
const releaseNotesMatch = re.exec(input);
if (releaseNotesMatch) {
const divider = `</details>\n\n---\n\n### Configuration`;
const divider = `\n\n</details>\n\n---\n\n### Configuration`;
const [releaseNotes] = releaseNotesMatch;
const nonReleaseNotesLength =
input.length - releaseNotes.length - divider.length;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment