This commit is contained in:
duanfuxiang
2025-01-05 11:51:39 +08:00
commit 0c7ee142cb
215 changed files with 20611 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
/**
* 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, '');
}