[K/JS] Remove illegal chars from the new js-minimal-stdlib path

This commit is contained in:
Artem Kobzar
2022-10-03 15:59:07 +00:00
committed by Space Team
parent 81c52e6886
commit 574d774277
@@ -420,7 +420,10 @@ class IrToJs(
}
private val IrModuleFragment.jsModuleName: String
get() = name.asString().dropWhile { it == '<' }.dropLastWhile { it == '>' }
get() = name.asString()
.replace("[.:@]".toRegex(), "_")
.dropWhile { it == '<' }
.dropLastWhile { it == '>' }
private fun List<JsStatement>.toJsCodeString(): String =
JsCompositeBlock(this).toString()