From 4f84e332aba8db369eb4a471b017af1210379a41 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 4 Dec 2024 18:09:22 -0800 Subject: [PATCH] remove duplicate markdown file --- core/util/markdown.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 core/util/markdown.ts 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(); -}