Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

assistantInsights.ts

3 lines181 Bytes

1export function shouldPreserveAssistantLineBreaks(text: string): boolean {
2 return /^★ Insight(?:\s|─)|(?<![^\r\n])`★ Insight[ \t]+─{3,}`[ \t]*(?![^\r\n])/mu.test(text);
3}