Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open 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, ""),
4 );
5}