Strip the leading ## version heading and date sub-heading from a changelog entry
(entry: string)
| 97 | |
| 98 | /** Strip the leading ## version heading and date sub-heading from a changelog entry */ |
| 99 | function stripVersionHeading(entry: string): string { |
| 100 | return entry |
| 101 | .replace(/^## .+\n/, '') // remove ## version heading |
| 102 | .replace(/^<sub>.+<\/sub>\n/, '') // remove <sub>date</sub> line |
| 103 | .replace(/^_.+_\n/, ''); // remove _date_ line |
| 104 | } |
| 105 | |
| 106 | export function buildReleaseBody(release: PlannedRelease, bumpFiles: BumpFile[]): string { |
| 107 | const lines: string[] = []; |
no outgoing calls
no test coverage detected
searching dependent graphs…