init
This commit is contained in:
9
src/utils/content-filter.ts
Normal file
9
src/utils/content-filter.ts
Normal 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, '');
|
||||
}
|
||||
Reference in New Issue
Block a user