mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
fix embed wrapper not invoking immediately
This commit is contained in:
parent
0ee31f0443
commit
8e5148b390
2 changed files with 5 additions and 21 deletions
|
|
@ -38,7 +38,7 @@ export default function TextWrapper({ text }) {
|
|||
let embedTest = false;
|
||||
|
||||
// to match unenclosed code blocks
|
||||
if (text.match(/```/g)?.length === 1 && text.match(/```(\w+)/)) {
|
||||
if (text.match(/```/g)?.length === 1) {
|
||||
// if (text.match(/```/g)?.length === 1) {
|
||||
// const splitString = text.split('```')[1].split(/\s+/).slice(1).join('').trim();
|
||||
// embedTest = splitString.length > 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue