1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #~: Fix compatibility with replaceAll method (#1149)

(cherry picked from commit bfc9632189c5bd0d85b379e4a099211337674b3b)
(cherry picked from commit 9902a27644dd77c5cc81ad84ab59b9e8d8beb427)
This commit is contained in:
Sergio Betanzos 2021-04-28 11:47:55 +02:00 committed by Ruben S. Montero
parent 6112accac8
commit 826eea1588
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -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) {