diff --git a/src/core/operations/ParseAITokens.mjs b/src/core/operations/ParseAITokens.mjs index 70c457d5..06706fc0 100644 --- a/src/core/operations/ParseAITokens.mjs +++ b/src/core/operations/ParseAITokens.mjs @@ -134,7 +134,8 @@ class ParseAITokens extends Operation { */ replaceSpacesOutsideTags(htmlString) { return htmlString - .replace(/(]*>.*?<\/script>)|(<[^>]*?>)|(\s+)/gi, (match, scriptTag, htmlTag, spaces) => { + .replace(/