@gamelearn/arcade-components 3.26.0-fix-4 → 3.26.0-fix-6
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.
|
@@ -27960,9 +27960,26 @@ const noop$1 = () => {
|
|
|
27960
27960
|
(n === "file" || !n) && o ? P(o == null ? void 0 : o.url) : p();
|
|
27961
27961
|
}, [o, n, D, T, p, N, P, s, e, d]), k;
|
|
27962
27962
|
}, cleanTextOfHtmlTags = (d) => {
|
|
27963
|
-
const e = /<\/p>|<\/h1>|<\/h2>|<\/h3>|<\/h4>|<\/h5>|<\/h6>|<\/li>/gi, n = /"/gi
|
|
27964
|
-
|
|
27965
|
-
|
|
27963
|
+
const e = /<\/p>|<\/h1>|<\/h2>|<\/h3>|<\/h4>|<\/h5>|<\/h6>|<\/li>/gi, n = /"/gi, t = {
|
|
27964
|
+
"'": "'",
|
|
27965
|
+
"'": "'",
|
|
27966
|
+
"&": "&",
|
|
27967
|
+
"<": "<",
|
|
27968
|
+
">": ">",
|
|
27969
|
+
" ": " ",
|
|
27970
|
+
"–": "–",
|
|
27971
|
+
"—": "—",
|
|
27972
|
+
"…": "..."
|
|
27973
|
+
};
|
|
27974
|
+
if (d) {
|
|
27975
|
+
let c = d.replace(e, "").replace(n, "");
|
|
27976
|
+
Object.keys(t).forEach((f) => {
|
|
27977
|
+
const l = new RegExp(f, "gi");
|
|
27978
|
+
c = c.replace(l, t[f]);
|
|
27979
|
+
});
|
|
27980
|
+
const h = c.replace(/(<([^>]+)>)/gi, "");
|
|
27981
|
+
return console.log(h), h;
|
|
27982
|
+
}
|
|
27966
27983
|
}, READING_TIME = 0.2;
|
|
27967
27984
|
function LecturesComponent({
|
|
27968
27985
|
emitEvent: d,
|