From c9799991f2e52cd3b2e331c52114007608244807 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 16 May 2024 16:18:42 -0400 Subject: [PATCH] Also replace > with > --- src/lib/utils/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 03cbc6262..2f9b1dc2c 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -36,11 +36,14 @@ export const sanitizeResponseContent = (content: string) => { .replace(/<$/, '') .replaceAll(/<\|[a-z]+\|>/g, ' ') .replaceAll('<', '<') + .replaceAll('>', '>') .trim(); }; export const revertSanitizedResponseContent = (content: string) => { - return content.replaceAll('<', '<'); + return content + .replaceAll('<', '<') + .replaceAll('>', '>'); }; export const capitalizeFirstLetter = (string) => {