@innovastudio/contentbox 1.0.51 → 1.0.52
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovastudio/contentbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "public/contentbox/contentbox.esm.js",
|
|
6
6
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@ashthornton/asscroll": "^2.0.4",
|
|
42
|
-
"@innovastudio/contentbuilder": "^1.0.
|
|
42
|
+
"@innovastudio/contentbuilder": "^1.0.71",
|
|
43
43
|
"axios": "^0.21.4",
|
|
44
44
|
"cors": "^2.8.5",
|
|
45
45
|
"express": "^4.17.1",
|
|
@@ -20971,6 +20971,13 @@ class Snippets {
|
|
|
20971
20971
|
if (snippetPathReplace[0] != '') {
|
|
20972
20972
|
var regex = new RegExp(snippetPathReplace[0], 'g');
|
|
20973
20973
|
html = html.replace(regex, snippetPathReplace[1]);
|
|
20974
|
+
|
|
20975
|
+
/* for encoded replace, change / to %2F */
|
|
20976
|
+
var slash = new RegExp('/', 'g');
|
|
20977
|
+
var snippetPathReplace_0 = snippetPathReplace[0].replace(slash, '%2F');
|
|
20978
|
+
var snippetPathReplace_1 = snippetPathReplace[1].replace(slash, '%2F');
|
|
20979
|
+
regex = new RegExp(snippetPathReplace_0, 'g');
|
|
20980
|
+
html = html.replace(regex, snippetPathReplace_1);
|
|
20974
20981
|
}
|
|
20975
20982
|
}
|
|
20976
20983
|
|