@mujian/js-sdk 0.0.6-beta.21 → 0.0.6-beta.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/react.js +1 -1
  2. package/package.json +1 -1
package/dist/react.js CHANGED
@@ -374,7 +374,7 @@ const MdRendererBase = ({ content })=>{
374
374
  let mes = messageFormatting(content);
375
375
  mes = mes.replace(/<pre><code(.*)>[\s\S]*?<\/code><\/pre>/g, (match)=>{
376
376
  if (!match.includes("&lt;body&gt;") && !match.includes("&lt;/body&gt;")) return match;
377
- const code = match.replace("<pre><code>", "").replace("</code></pre>", "");
377
+ const code = match.replace(/<pre><code(.*?)>/g, "").replace(/<\/code><\/pre>/g, "");
378
378
  const srcdoc = createSrcContent(unescapeHTML(code));
379
379
  const id = v4();
380
380
  setIframeIdList((prev)=>[
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mujian/js-sdk",
3
- "version": "0.0.6-beta.21",
3
+ "version": "0.0.6-beta.22",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {