@joystick.js/node-canary 0.0.0-canary.84 → 0.0.0-canary.85
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.
|
@@ -25,9 +25,8 @@ const flattenAndReplaceWhenElements = (dom = {}, options = {}) => {
|
|
|
25
25
|
};
|
|
26
26
|
var replaceWhenTags_default = (html = "") => {
|
|
27
27
|
try {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
return dom.toString();
|
|
28
|
+
const whenRegex = new RegExp("<when>|</when>", "g");
|
|
29
|
+
return html?.replace(whenRegex, "");
|
|
31
30
|
} catch (exception) {
|
|
32
31
|
throw new Error(`[ssr.replaceWhenTags] ${exception.message}`);
|
|
33
32
|
}
|