infio-copilot-dev/src/utils/content-filter.ts
duanfuxiang 0c7ee142cb init
2025-01-05 11:51:39 +08:00

10 lines
304 B
TypeScript

/**
* Removes AI code block tags from content
* @param content The content to filter
* @returns The filtered content without AI code block tags
*/
export const removeAITags = (content: string): string => {
// Remove ```infioedit\n and ``` tags
return content.replace(/```infioedit\n```\n/g, '');
}