diff --git a/src/formatters/helpers/getEndOfSection.ts b/src/formatters/helpers/getEndOfSection.ts index 124a3b8..1005c34 100644 --- a/src/formatters/helpers/getEndOfSection.ts +++ b/src/formatters/helpers/getEndOfSection.ts @@ -12,7 +12,7 @@ export function getMarkdownHeadings(bodyLines: string[]): Heading[] { const headers: Heading[] = []; bodyLines.forEach((line, index) => { - const match = line.match(/^(#+\s)[\s]?(.*)$/); + const match = line.match(/^(#+)[\s]+(.*)$/); if (!match) return;