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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user