@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.
- package/dist/react.js +1 -1
- 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>(
|
|
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
|
/**
|