remove duplicate markdown file

This commit is contained in:
Dallin Romney 2024-12-04 18:09:22 -08:00
parent c98cf5fc56
commit 4f84e332ab

View file

@ -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();
}