mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-23 11:38:07 +00:00
refactor(tooling): remove unused cleanup helpers
This commit is contained in:
@@ -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) ?? "");
|
||||
|
||||
Reference in New Issue
Block a user