[Gradle, JS] Use replace by just string, not regexp in webpack config

^KT-43379 fixed
This commit is contained in:
Ilya Goncharov
2021-06-01 13:47:26 +03:00
committed by TeamCityServer
parent 8c38c4a8e7
commit ce78457eaa
@@ -489,7 +489,7 @@ data class KotlinWebpackConfig(
let msg = `${"$"}{Math.trunc(p / 10)}${"$"}{Math.trunc(p % 10)}% ${"$"}{message} ${"$"}{args.join(' ')}`;
${
if (progressReporterPathFilter == null) "" else """
msg = msg.replace(new RegExp(${progressReporterPathFilter!!.jsQuoted()}, 'g'), '');
msg = msg.replace(${progressReporterPathFilter!!.jsQuoted()}, '');
""".trimIndent()
};
console.log(msg);