@mujian/js-sdk 0.0.6-beta.26 → 0.0.6-beta.27

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
@@ -96,7 +96,7 @@ function addDOMPurifyHooks() {
96
96
  * @returns {string} Encoded message text
97
97
  * @copyright https://github.com/kwaroran/risuAI
98
98
  */ function encodeStyleTags(text) {
99
- const styleRegex = /<style>(.+?)<\/style>/gi;
99
+ const styleRegex = /<style>([\s\S]+?)<\/style>/gi;
100
100
  return text.replaceAll(styleRegex, (_, match)=>`<custom-style>${encodeURIComponent(match)}</custom-style>`);
101
101
  }
102
102
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mujian/js-sdk",
3
- "version": "0.0.6-beta.26",
3
+ "version": "0.0.6-beta.27",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {