Skip to content

Commit 5bd3235

Browse files
Sandboxed test is not compiling because of illegal unicode escape #1134 (#1182)
1 parent e5ed167 commit 5bd3235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgMethodConstructor.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ internal class CgMethodConstructor(val context: CgContext) : CgContextOwner by c
398398
}
399399

400400
private fun String.escapeControlChars() : String {
401-
return this.replace("\b", "\\b").replace("\n", "\\n").replace("\t", "\\t").replace("\r", "\\r")
401+
return this.replace("\b", "\\b").replace("\n", "\\n").replace("\t", "\\t").replace("\r", "\\r").replace("\\u","\\\\u")
402402
}
403403

404404
private fun writeWarningAboutCrash() {

0 commit comments

Comments
 (0)