refactor(tooling): remove unused cleanup helpers

This commit is contained in:
Vincent Koc
2026-06-20 05:35:41 +08:00
parent b073d7cc11
commit 0eed410bd0
3 changed files with 0 additions and 16 deletions

View File

@@ -289,10 +289,6 @@ function extractMarkdownSections(headingRegex, body = "") {
return sections;
}
export function extractEvidenceSections(body = "") {
return extractMarkdownSections(/^#{2,6}\s+evidence\b[^\n]*$/im, body);
}
export function hasAuthoredPullRequestSection(heading, body = "") {
const headingPattern = new RegExp(`^#{2,6}\\s+${escapeRegex(heading)}\\b[^\\n]*$`, "im");
return !isMissingValue(extractMarkdownSections(headingPattern, body).at(-1) ?? "");