@gamelearn/arcade-components 3.19.3 → 3.20.0
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.
|
@@ -27942,12 +27942,12 @@ const noop$1 = () => {
|
|
|
27942
27942
|
if (x && s)
|
|
27943
27943
|
if (n === "voice" && (l != null && l.id)) {
|
|
27944
27944
|
const M = D(l);
|
|
27945
|
-
k({ voiceId: M, text: e });
|
|
27945
|
+
k({ voiceId: M, text: e.replace("'", "'") });
|
|
27946
27946
|
} else
|
|
27947
27947
|
(n === "file" || !n) && d ? N(d == null ? void 0 : d.url) : _();
|
|
27948
27948
|
}, [D, k, x, l, e, n, d == null ? void 0 : d.url, d, N, _, s]), F;
|
|
27949
27949
|
}, cleanTextOfHtmlTags = (l) => {
|
|
27950
|
-
const e = /<\/p>|<\/h1>|<\/h2>|<\/h3>|<\/h4>|<\/h5>|<\/h6>|<\/li>/gi, n = /"
|
|
27950
|
+
const e = /<\/p>|<\/h1>|<\/h2>|<\/h3>|<\/h4>|<\/h5>|<\/h6>|<\/li>/gi, n = /"/gi;
|
|
27951
27951
|
if (l)
|
|
27952
27952
|
return l.replace(e, ". </p>").replace(n, "").replace(/(<([^>]+)>)/gi, "");
|
|
27953
27953
|
}, READING_TIME = 0.2;
|