({ content }: UserMessageProps)
| 6 | } |
| 7 | |
| 8 | export function UserMessage({ content }: UserMessageProps) { |
| 9 | return ( |
| 10 | <div className="overflow-hidden pt-[4px]"> |
| 11 | <Markdown limitedMarkdown>{sanitizeUserMessage(content)}</Markdown> |
| 12 | </div> |
| 13 | ); |
| 14 | } |
| 15 | |
| 16 | function sanitizeUserMessage(content: string) { |
| 17 | return content.replace(modificationsRegex, '').trim(); |
nothing calls this directly
no test coverage detected