Skip to content

Commit b25439b

Browse files
authored
🐛 [e2e, Frontend] Use replace instead of replaceAll (#6549)
1 parent d0e66f1 commit b25439b

File tree

1 file changed

+2
-1
lines changed
  • services/static-webserver/client/source/class/osparc/utils

1 file changed

+2
-1
lines changed

services/static-webserver/client/source/class/osparc/utils/Utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ qx.Class.define("osparc.utils.Utils", {
9494
replaceTokens: function(str, key, value) {
9595
// `str` might be a a localized string, get the string first
9696
str = str.toString ? str.toString() : str;
97-
return str.replaceAll("${"+key+"}", value);
97+
const regex = new RegExp("${"+key+"}", "g");
98+
return str.replace(regex, value);
9899
},
99100

100101
/**

0 commit comments

Comments
 (0)