4 ms·
It has nothing to do with this task. function replaceAll(str: string, pattern: string, replacement: string): string { return str.replace(new RegExp(escap
by anderskaseorg 7y ago
It has nothing to do with this task.
function replaceAll(str: string, pattern: string, replacement: string): string {
return str.replace(new RegExp(escapeForRegExp(pattern), "g"), replacement);
}