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.
2 parents 5c34a94 + b25439b commit 0dbbd7dCopy full SHA for 0dbbd7d
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