Hello,
If I am correct, there is no built-in function for string replace.
Have you got your own function for it?
function stringReplace(str, oldString, newString)
{
var result = str;
while (true)
{
var index = result.find(oldString);
if (index != null)
{
var index2 = index+oldString.length();
result = result.substring(0, index) + newString + result.substring(index2, result.length());
}
else
{
return result;
}
}
return null;
}
Same issue here.
Thanks for the snippet.