3 ms·
Now it doesn’t work if the string you want to replace has any regex special characters. One JS idiom for replace-all is str.split(before).join(after)
by minitech 7y ago
Now it doesn’t work if the string you want to replace has any regex special characters. One JS idiom for replace-all is
str.split(before).join(after)