refactor: dedupe bluebubbles and zalouser readers

This commit is contained in:
Peter Steinberger
2026-04-07 08:02:44 +01:00
parent 90a45a4907
commit 424b65b697
13 changed files with 45 additions and 27 deletions

View File

@@ -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[] {