diff --git a/chat-langchain/app/components/ChatMessageBubble.tsx b/chat-langchain/app/components/ChatMessageBubble.tsx index 1f8be8918..b3d41e5fc 100644 --- a/chat-langchain/app/components/ChatMessageBubble.tsx +++ b/chat-langchain/app/components/ChatMessageBubble.tsx @@ -66,7 +66,7 @@ const createAnswerElements = ( React.SetStateAction >, ) => { - const matches = Array.from(content.matchAll(/\[\^?(\d+)\^?\]/g)); + const matches = Array.from(content.matchAll(/\[\^?\$?{?(\d+)}?\^?\]/g)); const elements: JSX.Element[] = []; let prevIndex = 0;