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.
replace
replaceAll
1 parent d0e66f1 commit b25439bCopy full SHA for b25439b
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