feat(sdk): strip blockquote-prefixed lines before UAT item scan (#3184)

Cycle 8 of ~15: adds blockquote-line stripping pass. Quoted
documentation snippets no longer pollute the item roster.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-05-18 22:47:15 -04:00
parent 47a7412164
commit 7c1ffb4131
2 changed files with 34 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ function stripMarkdownInjection(content: string): string {
s = s.replace(/```[\s\S]*?```/g, '');
// Pass 3: strip HTML comment regions (<!-- ... -->)
s = s.replace(/<!--[\s\S]*?-->/g, '');
// Pass 4: strip blockquote-prefixed lines (any line starting with optional whitespace + >)
s = s.replace(/^\s*>.*$/gm, '');
return s;
}