diff --git a/core/util/markdown.ts b/core/util/markdown.ts deleted file mode 100644 index f1cb8929c..000000000 --- a/core/util/markdown.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Removes code blocks from a message. - * - * Return modified message text. - */ -export function removeCodeBlocksAndTrim(text: string): string { - const codeBlockRegex = /```[\s\S]*?```/g; - - // Remove code blocks from the message text - const textWithoutCodeBlocks = text.replace(codeBlockRegex, ""); - - return textWithoutCodeBlocks.trim(); -}