Skip to contentOpen History to see the last commit
assistantInsights.ts
5 lines214 Bytes
1export function shouldPreserveAssistantLineBreaks(text: string): boolean { 2 return /^★ Insight(?:\s|─)|(?<![^\r\n])`★ Insight[ \t]+─{3,}`[ \t]*(?![^\r\n])/mu.test( 3 text.replace(/^\uFEFF/u, ""),