From 826eea158853e0b5081bd85d44c1716f9fbb48f6 Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Wed, 28 Apr 2021 11:47:55 +0200 Subject: [PATCH] M #~: Fix compatibility with replaceAll method (#1149) (cherry picked from commit bfc9632189c5bd0d85b379e4a099211337674b3b) (cherry picked from commit 9902a27644dd77c5cc81ad84ab59b9e8d8beb427) --- .../public/app/tabs/templates-tab/form-panels/instantiate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js index 068ddeb923..e30c1348f2 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js @@ -466,7 +466,7 @@ define(function(require) { var os = original_tmpl.TEMPLATE.OS ? original_tmpl.TEMPLATE.OS : {}; for ([key, value] of Object.entries(os)) { - os[key] = value.replaceAll('"', '\\"'); + os[key] = value.replace(/"/g, '\\"'); } if (boot && boot.length > 0) {