mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 03:50:23 +00:00
refactor: dedupe bluebubbles and zalouser readers
This commit is contained in:
@@ -81,7 +81,7 @@ export function renderWikiMarkdown(params: {
|
||||
|
||||
export function extractTitleFromMarkdown(body: string): string | undefined {
|
||||
const match = body.match(/^#\s+(.+?)\s*$/m);
|
||||
return match?.[1]?.trim() || undefined;
|
||||
return normalizeOptionalString(match?.[1]);
|
||||
}
|
||||
|
||||
export function normalizeSourceIds(value: unknown): string[] {
|
||||
|
||||
Reference in New Issue
Block a user