Skip to content

Commit

Permalink
Loosen citation regex parsing (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Feb 8, 2024
1 parent 99ea0a9 commit 86db409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat-langchain/app/components/ChatMessageBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const createAnswerElements = (
React.SetStateAction<boolean[]>
>,
) => {
const matches = Array.from(content.matchAll(/\[\^?(\d+)\^?\]/g));
const matches = Array.from(content.matchAll(/\[\^?\$?{?(\d+)}?\^?\]/g));
const elements: JSX.Element[] = [];
let prevIndex = 0;

Expand Down

0 comments on commit 86db409

Please sign in to comment.