We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33237ba commit d05cb83Copy full SHA for d05cb83
services/static-webserver/client/source/class/osparc/utils/Utils.js
@@ -94,7 +94,8 @@ qx.Class.define("osparc.utils.Utils", {
94
replaceTokens: function(str, key, value) {
95
// `str` might be a a localized string, get the string first
96
str = str.toString ? str.toString() : str;
97
- return str.replaceAll("${"+key+"}", value);
+ const regex = new RegExp("${"+key+"}", "g");
98
+ return str.replace(regex, value);
99
},
100
101
/**
0 commit comments