fix embed wrapper not invoking immediately

This commit is contained in:
Daniel Avila 2023-02-25 10:33:26 -05:00
parent 0ee31f0443
commit 8e5148b390
2 changed files with 5 additions and 21 deletions

View file

@ -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;